Adds client side code for metadata lookup.

Test Plan: go test ./...

Reviewers: spencerkimball

Reviewed By: spencerkimball

Differential Revision: http://phabricator.andybons.com/D28