Restructure Tornado application.