Initial steps of refactoring.
Added fragment to use later.

Helpful tip, after npm install, run the bower install.
Modified path of mongo files.
Simplified layout while testing.
Refactored error messages.
Properly formatted return object.
Deleted placeholder logic.
Got initial select from mongo working.
Continued development.