Update __init__.py

Support the init_app convention used in most Flask extensions.
Get the url prefix from an app settings file not from kwargs to further follow the init_app convention.