Do not store redirect uri in session (closes #1839)

Pass it as a GET argument in the login form redirect Location instead.

Also:
- Made LOGINFORM an autonomous page that do not requires the `sole=A`
  argument.