Adding tweaks after Tue morning, which contains faux-code for several things:

1) Using javascript and stylesheets blocks in a more traditional way
2) Using macros
3) Using a new server.yml or perhaps defaults.yml file to simplify parameters.yml configuration
4) Using a security.php file to conditionally load security files