Enable localisation of flash messages

Since Flask upgraded to 0.10, it's no longer possible to use `lazy_gettext` to
set `LoginManager.login_message`.

Add an optional `localize_callback` attribute to be called with flash messages
if the attribute is not None.
anonymous user assignment corrected
0.2.9
fixes #137: remember me broken after lazy load change
allow session protection in session
Merge pull request #138 from miguelgrinberg/master

fixes #137: remember me broken after lazy load change
Fix request context dependency

Fixes #140
Merge pull request #141 from xsleonard/patch-1

Fix request context dependency
Enable localisation of flash messages
Since Flask upgraded to 0.10, it's no longer possible to use
`lazy_gettext` to set `LoginManager.login_message`.

Add an optional `localization_function` argument/attribute to be called
with flash messages if the method is present.
Enable localisation of flash messages
Since Flask upgraded to 0.10, it's no longer possible to use
`lazy_gettext` to set `LoginManager.login_message`.

Add an optional `localize_callback` attribute to be called
with flash messages if the attribute is not None.
Merge branch 'master' of https://github.com/deanishe/flask-login

Conflicts:
	flask_login.py