Use RpcReader to scan for events, stream input data

Fixes #8