Handles requests and dispatches them to the correct apps. Also handles OAuth authentication to apps.