minor tidy up of custom modules
added app_config file to stick app config options in. Keeps server.js clean.