Added functions to the compatibality layer for display-related operations that were causing warnings in Moodle 2.
Replace deprecated header functions with wrappers in lib/compat.php
Fix for defined() error when sloodle_config not made
Merge branch 'fix-deprecation' into release-v2.1
Merge branch 'release-v2.1'