Add a domain id back to rest api 1.6 to represent the unique id

Also change urls to use simpler routing