Logging

Logging with Bunyan.

I created a function getLogger(config, componentName) in utils.js that returns either a child logger, if a valid logger was provided in the config, or a new logger.

The main logger reference is created in the app.js, which is then passed to the sub components through the config.