Wrap all functions into a class
Add dropping of old messages

And new fancy send engine including flush callback.