Adds Domains to REST API

Adds REST plumbing for the repository domain resource