Better __main__ based on import_module (to avoid surious web initialization)

--HG--
extra : rebase_source : cf7a069f239ed503722496bd4ab1b301f87a6c6c
Removed heroku stuff

--HG--
extra : rebase_source : 4098ddb29b8126b4b921a30677c000a91b3b2fb6
Removed heroku stuff

--HG--
extra : rebase_source : 682486cbc399df77504287fc056985b9c47c6abd
Cleaning up again

--HG--
extra : rebase_source : 3de0770b2627f81a57f987bcaea257e21597f8fe
Sort just once, out of the loop!

--HG--
extra : rebase_source : 17248dd54c50cb98fa24e7987db18ea6090a5bd1
Removed heroku stuff

--HG--
extra : rebase_source : 8d349d84a5c04ffd7429dacc60e31592d8139d6d