Netty4 support

Fixes issue #184