Fix some issues with the gateway.
Fix some issues with the gateway.

Moved the RingBuffer class to the utils library.
Updated pom file.