Rearrangement of beta-amino alcohols and application to the synthesis of biologically active compounds.