tornado's ioloop intergration

[Tornado](http://www.tornadoweb.org/) is an asynchronized network framework.

This patch enables an XMPP bot to do other non-blocking network things like HTTP requests, providing a RESTful HTTP interface, connecting to IRC at the same time (and those are what I have done with this patch).