web: Move long-polling handler to tornado