Sign in redirection

Moved 
- UserFactory
- login_as_user
to ralph.

Added:
- test *LoginRedirectTest*
- home_url to app.