Add initialisation and deinitialisation
Add initial libev setup for the command processor
Add function for flushing messages from the serializer
Add implementation of flushing function
Add implementation of dispatching function (incomplete)