Write server.js RESTful routes and mongoose config