hash out some REST semantics plus other cleanup

Summary: a lot of this is whitespace/go vet/lint fixes.

Test Plan: unit tests

Reviewers: strangemonad, spencerkimball

Reviewed By: spencerkimball

Subscribers: team

Differential Revision: http://phabricator.cockroachdb.org/D153