Added logging statements to help see what the server is up to.
Refactored request processing out of server.js into api.js with test cases
Refactored request processing out of server.js into api.js with test cases
ensure array not empty
ensure data POST contains src element
Adding time inserted to DB query and test
Added better error handling for bad requests
mocking mongo interation
merge with master