Migrate to netty 4

Most of it is working but still not everything.