Implemented the mongo models and api calls. Still partially incomplete.

Persistence still needs to be implemented in the POSTs.