Some settings speed up work

Navigation to the settings page, in particular current_server_settings, took 62 seconds on my machine, deeper investigation showed that it was utilising at least 6 db look ups and that these db lookups were not cached. In fact one function hit 2 db queries at once and that was hit multiple times itself.

This idea moves some of the details into the current_appliance model and caches them.