Add functionality to adaptive mesh refinement and corresponding example problems to app adaptiveRefinement.