Fix api and user controller variables
Refactor UserController

UserController now is an IIFE that returns an object instead of a constructor
Fix UserController variable
Refactor api controller

api controller now returns an object instead of a constructor
Fix UserController variable
Fix ApiController variable
Fix user tests