Fleshed out basic API client.

Change-Id: Idbd620b4d783b16d042a16264514fd18f60d6292