Connection handling improved a bit.
Removed crossdomain stuff, not needed anymore.