Change app to application in wsgi.
Re-enable threading and add to config.