Fix new install with developer debug on.

Can't print context name in the page footer before DB tables exist!
Also, show page generaltype in the footer.
Fix new install with developer debug on.

Can't print context name in the page footer before DB tables exist!
Also, show page generaltype in the footer.

dilawar/moodle