Added framework for consuming events from a separate 'green' worker within the Flask app.