[#1025] User log in/out fixes including i18n and non standard root url
[#1025] Fix failing tests due to extra redirect etc (stupid tests)
Merge branch 'master' into 1025-user-login-fixes
[#1039] make sure came_from url is sane (local)
[#1039] Minor code cleanup - unused imports
[#1039] Fix for own domain
Merge branch 'master' into 1025-user-login-fixes
Merge branch '1025-user-login-fixes'