Cleaned up some of the code. Various bugfixes. New engine.io.