Added mongodb support for api
Merge pull request #350 from Bladrak/apiMongo

Added mongodb support for api