Added basic example of Mongoose Schema definitions
Added mongodb and mongoose as dependencies
Removed duplicate variable initialization
Moved routing declaration into module of consumer in order to make the module code more descriptive and make the dependency between the two source-files more loosly coupled
Added database connection to server initialization. Refactored it a bit so all routes are registered before the server starts to listen.
Adjusted parameters of bodyParser to not map parameters to separate object and instead keep them like an object
Implemented database lookup for consumer plural GET
Implemented database insertion for consumer POST
Merge branch 'master' into niels-sprint1
Implemented database fetch for specific consumer GET, based on username
Added logging to database error handling in previously implemented endpoints
Removed the mapParams setting for bodyParser
Implemented database update for consumer PUT endpoint
Implemented database update for consumer PUT endpoint
Got rid of mock consumer database
Got rid of search-on-name method, it does not make sense when you can no longer look-up by ID
Adjusted selection to avoid leak of IDs on returned objects upon UPDATE and DELETE of consumers.
Added real mongoose schema definition
The custom mongoose validator for string length now works correctly
Added middleware for automatically updating time stamps when saving to database