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