connected mongodb; debugging heroku node app failure
modularized into app.js and mongo.js
modularized api.js