Error when not calling init_app() before setting @babel.localeselector

Setting a function to @babel.localeselector and @babel.timezoneselector shouldn't need the extension to be linked to the Flask app.

Moved setting of variables from the init_app() to the __init__().