travis: set maximum Java heap size to 2GB.
netty transport: wait for shutdown to complete.
Merge pull request #159 from m1ch1/master

travis: fix out of memory error
Enqueue a message to shutdown NettyTransport and increase timeout for NettyTest.