Send messages using Buffer daemon

Added class BufferHandler that is meant to manage buffer functions from
java

A daemon is started by BufferHandler that goes through buffers, sends
all messages and marks them as sent.