Refactor updateAuth, login & logout into their own factory method

- Remove common controller as it is obsolete