Upgrade to Netty 4

- Some additional changes as well to take advantage of buffer pooling
- Fix ResourcePool such that multiple calls to close do not close things
  more than once