Renamed mongodb.js to db.js
Added subscribe api, fixed authentication