This is pretty much a generic sails rest api for use with mongoDB