Add auth to RPC, client key and pinning support

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>