discoverer/api refactor: Add local routes to deploy_path, move app init from __init__.py to app.py