cleaned up controller stub code, completed user model methods, added errcode constants, added 11 user unit tests, all passing as of now