Code for c3px - Magic made with Motor (Tornado and Mongo) + Schematics + WTForms