move user routes for login and register to controllers/user.js
Create register route and method that assigns random code, encrypts the password and assigns unique name count before saving the user record with User instance methods defined in User class
Use a custom bookshelf module to return error messages from postgres back to node