Move Flask app creation to __init__.py.

This will make it easier to access the app's configuration from
other modules.
Automatically link JIRA issues to PRs.

This is intended to replace https://github.com/pwendell/spark/blob/github-integration/dev/github_jira_sync.py when we move to the new Jenkins.