Always using domain id to create domain project or user

Add a function to get domain id from a domain name,
and use domain id to create domain project or user.

Change-Id: Ie97c179e62311406201476c0d4c43a731c48908c
Partial-Bug: #1376213
Updated from global requirements

Change-Id: Iadaba02241b4f5fe36537288a321f2101d14c30c
Merge "Always using domain id to create domain project or user"