Redirect to previous URL after signing in

- Save the last URL requested in a session variable and redirect to it
  after signing in.
- Do not destroy the guest user after signing in.
- Move all methods in ApplicationController to private scope.