Be smarter about config generator default package name

Using python setup.py --name instead of the current working
directory will allow the config generator to work correctly by
default even if the local source tree was cloned into a directory
that doesn't match the project name.

Change-Id: Iea529e7e691d94402f658e7095387dc3e98e32fe
Closes-Bug: #1288417
Add lockutils fixture to OpportunisticTestCase

We're getting hit hard with db race problems right now and the
proper fix can't go in until infra has all of their regions
updated.  Using the lock fixture to serialize all of the db tests
should help with the problem until infra is ready.

Change-Id: If883832b0eba08f1508a247310b8eebd67b27971
Partial-Bug: #1288916
policy: rename Exception to avoid nose regression

The name TestException makes nose think that this is a test case, so it
fails with nose 1.3.1. Renaming the exception thinks that problem.

Change-Id: I50b760ec24a67900f80d961f738d5fd7643561bc
Merge "Be smarter about config generator default package name"
Merge "Add lockutils fixture to OpportunisticTestCase"