Fixed up all network code with netty stuff.