Refactored the RPC model a lot.
Refactored the RPC framework a bit more. Added integration test to the EventsPlugin.