Add login redirect view which will generate singly url for login and redirect to it

Use next_url argument of get_authentication_url method to pass a url for redirect after login.
Improve singly_login_url template tag

If request is in context then check for his 'next' query argument
and pass it to singly.get_authentication_url method
Increase the version