Feature/memory event bus

Initial implementation of an in-memory bus which supports testing of RPC calls.