Introduce a BufferManager class to allow for caching, reorder stuff to free space, implement sending more than one buffer