Implement Stratum RPC protocol