Updated User DB Model

Updated the user DB Model to be more robust.
Fixed an issue with created_at datetime being tied to the user.id.
Fixed an issue with User model's prototype methods being leaked into
API.

Various updates to other files to keep the linter happy and the code
more uniform.