Adding new helper function, bootstrap_flask_app.

This simplifies our tests.
Removing unnecessary setUp code.
Simplifying setUp code in tests.