Really, too much for one commit.... refactored userscontroller and user_model because i suddenly remembered how php was supposed to work.

i also am finishin up the vendor controller and vender_model