restify and mongoose to build an api