Adds Domains to REST API

Adds REST plumbing for the repository domain resource

Closes Issue #41