Sync oslo log for "Adding domain to context and log"

Syncing the log from oslo-incubator change Ic2cf3e52 "Adding domain to
context and log" without dependencies.

Note: I did not sync context.py since it's obsolete and not used in Nova.

Changes in the module log:

Change Ic6f0c0ef: Remove vim header
Change Ie2886da6: Don't log to stdout when log_dir is set
Change I97971f2a: Unify different names between Python2/3 with six.moves

Change-Id: Ib11e015666701868410d743dad4218d92376d181
Related-Bug: #1248936
Adding information about domain in the context

Adding the variables domain_id, project_domain_id and user_domain_id to
the RequestContext in order to be able to implement domain quotas. If no
domain information is in the header the variables are set to 'default',
since it's the default value for domain in Keystone V2.0 API.

Change-Id: Ice7805041d2df72d603e9d56a5df4cf7f5489992
Closes-bug: #1248936
Merge commit 'refs/changes/70/55870/13' of https://review.openstack.org/openstack/nova into domain-nova
Testing inclusion of domain id on project
Incluaso
Inclusao
Inclusao
Inclusao
Inclusao
Inclusao 2
Inclusao 2
Inclusao 2
Inclusao 2]
$1
$1
$1
$1
$1
$1
$1