added handling of cmd frame
added include of WarningType
removed NIO byte buffer usage and added internal implementation of bytebuffer
fixed buffer limit handling
removed ringbuffer since there is a similar implementation in Java
Merge pull request #17 from joakimeriksson/master

Cleanups to avoid using NIO resources and unnecessary code.