Added logic to merge domains into a new service. This is duplicated code, which could do with client v server refactoring some day. It was this lack of front-end functionality that caused #11. Resolves #11