Rearrange scope of variables. Remove environment variables. Introduce the concept of a Marley object containing all 'global' variables. Clean up server.js, server config file and database.js. Add logging module.