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 `localizer` function as an argument/attribute to be
called on messages before they're "flashed".