Add SaneRpcCode.

Adds SaneRpcCode, an enum representing all the RPCs available to the
client.

Uses SaneRpcCode where appropriate.