Clean slate for next commit
Rewritten with Flask instead of web.py, in a more modular way