Switched to a configuration based system. Also moved much of the web server settings to config settings.