core MDL-19799 Updated print_header and build_navigation to OUTPUT and PAGE equivalents