Rewrite everything using tornado

Also add a socket.io server using tornadio2