Start to migrate to Netty 4
Fix merge
Finish port of websocket related code
Fix merge conflict
Fix last compile errors
Change to netty 4.0.0.Beta2
Only do byte copies if needed
Set the channel class to use
Make sure a dynamic buffer is used all the time
Make sure the buffer is dynamic all the time
Fix handling of http content and headers
Fix logic in FlashPolicyHandler
Make sure the messages are not released to early
Make safe copy of buffer as the buffer is released after it is processed
Fix message type detection
Make sure we not access a freed buffer in tests
Cleanup
Fix logic to match Netty 4
Cleanup a bit
Correctly retain/release queued msgs