Redesign cms.io in a gevent-oriented fashion

And a lot of collateral changes. Details (reason, aim, results) are in each commit message.