Move app instantiation out of proxy.py.