add RPC stateAt
Merge pull request #316 from caktux/rpcstateat

add RPC stateAt