Local Multigrid on Adaptively Refined Meshes and Multilevel Preconditioning with Applications