Partially Revert "Remove non-functional came_from option" for loggin

commit 44cbfdc31938ee21ae02d03bd2282b3a0bb812af.
Merge pull request #1002 from camptocamp/restaure-login-camefrom

Partially Revert "Remove non-functional came_from option" for loggin