Support for advanced Netty options

Fixes #2747
Merge pull request #3188 from jroper/netty-advanced-options

Support for advanced Netty options