e2e and unit tests need different mock behavior. Abstracted 'useMocks' in config to 'testMode', so we can differentiate.
RPC refactoring
Move default /home routing to example package where it belongs
Automatic socket flushing for unit tests
RPC unit tests