big messy commit that does not work yet

Starting the Flask application stuff. Borrowing basic structure
from https://github.com/bev-a-tron/MyFlaskTutorial . File upload
does not work yet. Many debugging statements.
removing debugging lines
filewriting, tearDown, stats test improvement