Fix rendering of database connection error page

This is a fix for #1085. When there is no database connection the error page was not being properly rendered because of a loop of additional queries by the template layout.

This moves the calls for apps web roots to only the user template layout and the setting of the js and css minimizer to the setup.

It wasn't ideal, but I also had to unset the logged in user because the localization was trying to get the user's language preference using the database. Are there any other ideas?

@bartv2