Factor out tswebapp and logging setup in separate file
Support contest names without links to statements
Add python3 support while retaining compatibility with python2.
Merge branch 'py3'