Generic REST server for accessing Mongo