netty transport: add ssl support.
netty transport: set access levels of inner classes properly.