Add missing requirements to requirements.txt
Add a config.py module to contain configuration for the entire app
Switch to retrieving configuration from config module
Simplify chunking code