Refactor Beacon (to use application factory pattern + modular extension init)
Currently, the app is initialized with:
app = Flask(__name__)
It'd be better to use the Factory pattern:
def create_app(config_object):
app = Flask(__name__)
app.config.from_object(config_object)
register_extensions(app)
return app
application = create_app(DevelopmentConfig)
And to separate views/extensions from server init code.