Moving user creation, login and logout HTTP calls into userService