Removed unused classes references, fixed some docblocks and abstracted out some code out of the UserController into a BaseController.