Add support for getmininginfo RPC.

Closes #126.