Made changes to the server so that it can be started and stopped for integration tests.
I had to tidy up the way dependencies are passed into sub-modules so they aren't dependent on the exports of the parent module.
Moved server configuration parameters to a shared object so that I only have to make changes in one single place.
Moved the default write concern option to 'dbParams'. This stops the mongodb errors/wrarnings that were coming up with the latest mongodb driver.
I'll revisit this later when I expose server/database connection options to the config file.
Added handling for mongodb errors. These now return 500 errors.
Auto starting server when run as 'node server.js'.
Fixed error handling.
Fixed error status code.
Bumped version no to 0.10.1.