bugfix for register method and refactoring of specs

  Bugfix register method was missing user.save for exteranl
  authentication other than omniauth.

  Refactoring of omniauth specs to use let method to set omniauth
  hash.