implemented simple authentication and authorization via API key; modularized; brought in Flask-Login; updated requirements.txt --KW