A Multicomponent Route to Functionalized Amides and Oxazolidinones.