Implemented UserController, added util methods for webservice