Remove Flask and move static files to tornado. Simplified constants