Structure for Flask app, with imports set up.
Here's a working consumer/producer thread impl. Mostly for logic when we look back later.
Here's a semi-complete spec sheet. Prone to change.