Merge pull request #1 from kankje/tornado-to-flask

Move from Tornado to Flask
Fixes regarding the Tornado -> Flask change
Fixed conflicts
Layout improvements