Allow test_lockutils to run in isolation

While trying to port oslo to python 3, we discovered that test_lockutils
wasn't working when not run with the global test suite. The fix can be
tested running:

$ python -m openstack.common.lockutils python -m testtools.run \
  tests.unit.test_lockutils

Change-Id: I51461f63cdd8e7eb6f8b6fdfa838748a582ecdad
Merge "Allow test_lockutils to run in isolation"
Delete 'deprecated' directory

Not used anymore.

Change-Id: Ief39415e432e166e334755d65fb063f0264468b1
Python 3: enable tests/unit/test_log.py

Change-Id: I2ae861b73cf32c4f732a31ae93f7a86b05890fbb
Ability to customize default_log_levels for each project

Add a new parameter default_log_levels to log.set_defaults. We
need to default its value to None since this is a backwards
incompatible change otherwise. However, if someone is not setting
a specific value, we do need to set the usual default levels

exposed DEFAULT_LOG_LEVELS public variable so others can use
the default log levels to construct their custom defaults.

Change-Id: I49a82c5b3446784d254ca558f51b6c3e5c2028eb
Closes-Bug: #1297950
Merge "Python 3: enable tests/unit/test_log.py"
Added missing jsonutils.dump() function

The function is missing from the module, meaning that some module
consumers can't use jsonutils as a complete replacement for stdlib json
module.

Change-Id: Ia678d251a3984c959ae6c9d7ad70d33b197da4ff
Closes-Bug: 1338571
Updated from global requirements

Change-Id: I885991acc06cf903604d3d6ab59284ac337a04af
Merge "Added missing jsonutils.dump() function"
Merge "Updated from global requirements"
Backport code for i18n to check lazy at runtime

Currently in the oslo-incubator version of i18n support
the TranslationFactory generates a direct translation
method based on the passed lazy parameter.   This means that
when the default is assigned to _ during its intial import,
lazy isn't specified, which defaults to False, so the
TranslationFactory returns a method that does not support
lazy translation.

The _ method is not changed until enable_lazy is called, thus
any import of _ prior to that will cache the initial method
that does not support lazy translation even when it has been
enabled.

This problem was exposed by the cinder test case:
  cinder/tests/test_wsgi.py
test
  test_cinder_exception_with_localized_explanation

when the file:
  cinder/api/middleware/fault.py
had the line:
  from cinder.openstack.common.gettextutils import _
added to it.

This behavior is corrected in the i18n library such that the
generated method checks the global _lazy.USE_LAZY to determine
if lazy translation should be used in commit:

   Iae22668 Check the lazy flag at runtime

Note that this removes the lazy parameter from the signature of
install and the TranslationFactory to match the library.

Change-Id: If1832b012d4b72708d0850367a1ec55cb0cd63e8
Merge "Ability to customize default_log_levels for each project"
Fix exception message in openstack.common.processutils.execute

Exception message in 'execute' function has wrong value
for module and function. Remove it as wrong and redundant.

Change-Id: Ia5bb4180dbf0df92bfb986c2ddf8327d5bc08e7c