Fixed some more bugs, added basic validation of username/password, refactored names of functions and path of registration (now it is /register and api/v1/register), added /v1 to API path and addded /api/v1/logout and /api/v1/register
Refactored db.js to use a local (not in repo) config.js file; by default it now runs in development mode and connects to a local db. This is super fast and is good for day-to-day work
Removed a lot of logic, moved the connection string to use process.env.MONGODB_URI which is set either in config.js that is only local or on the deployment environment
Replaying changes from dev branch, mostly around refactoring of configuration and db connection init
Re-architected the user model, added email field validation, password hashing and authentication methods
Finished user registration and login logic, added most common validation, hashing of password etc.
Merging latest changes from dev - includes full user registration logic