adding support for npm start
setting up mongoose and doing a little cleanup
adding some logging stuff. Fixing merge conflicts