Refactor domain config upload
Refactor domain config upload

This gets the code ready for a change that will allow us to know if, and
how many, config files get uploaded.

Related-Bug: #1472059
Change-Id: I8f4f6dbb58f24a41026be2c2624316cc350a2ea8

rajalokan/keystone,rajalokan/keystone,mahak/keystone,ilay09/keystone,openstack/keystone,cernops/keystone,openstack/keystone,mahak/keystone,ilay09/keystone,rajalokan/keystone,ilay09/keystone,openstack/keystone,mahak/keystone,cernops/keystone