Unify different ring-balancing methods.

RingBuilder._initial_balance() gathers partitions differently from
.rebalance(), but the assignment algorithm is the same. However, there
were two nearly-identical implementations; these have been combined.

Also extracted a couple of utility methods to reduce duplication.

Change-Id: Ia5442782a8285dc14aa9a93878a7b0e8d1bb1be5
updated docs for domain remap and cname lookup middleware

Change-Id: I1c571951f25a6e724cdd4699eb94baad5e47eb95
Removed unused imports.

Change-Id: I5a837bea8699b78484265dc2434b190d0cf15de2
Added db_preallocation setting to replicators

Somehow I forgot the account and container replicators with the last
db_preallocation patch.

Change-Id: I1a42ef000d60b59aedb113d91485319d6919bc36
Make swift client easier to wrap

In the process of wrapping for profiling, a trivial wrap with def main()
ended in a ton of these:
    NameError: global name 'parser' is not defined

A closer investigation revealed an apparent confusion in argument names.
The problem was introduced by commit 985968f76550251904b64d12de025fa5d65ed03f
of November 2010. Note that Greg fixed st_delete() correctly in that one,
but apparently forgot the others.

Unit tests pass for both current (bad) code, and the patched code.
By the magic of Python scoping, current code works, just impossible
to wrap for a quick hack.

Change-Id: I18f2494ce2a201d04d49f99ea259d141939dcb6a
Fixed grammar and improve docs.

Corrected its/it's mistakes, harmonized line wrapping within some docs
and clarified doc wording in several places.

Change-Id: Ib9ac6d5e859f770a702e1fad6de8d4abe0390b47
fix when deleting a versioned object when the version target container is missing

Change-Id: I16a8d1f5543d62a6d968bf1b9f52f319902437cb
Allowed the proxy to pass on the X-Timestamp header.

Change-Id: I31a64614231391b52855b88220319b2359bea142
Fixed TestObjectController.test_PUT_auto_content_type()

The test was failing silently. To catch these errors the response
from controller.PUT() is now checked.

Fixes to the TestObjectController.test_PUT_auto_content_type():
* Check for the correct 'Content-Type' header in the fake connect() method
* Pass in the correct number of responses to fake_http_connect()
* Pass a 'transfer-encoding' header to PUT() so that
  constraints.check_object_creation() passes
* Pass the correct number of elements in the 'expected' iter to the
  test_content_type() method

Change-Id: I8dced7b2f3c7e1b1d292c6995b1faf46f5e863fe
return the full response from FakeAppObject

Fixes bug 984042

Change-Id: I18a6eac497b24338af4d82a568484b0fc9d97382
make test runner functions return the status of running the tests

This makes it a lot easier for CI jobs to be setup and return the true
status of the testsuite.

Change-Id: I0c2b0d6b17f560a889cd2f22ab98a68361f6d738
Merge "updated docs for domain remap and cname lookup middleware"
Merge "Make swift client easier to wrap"
Merge "fix when deleting a versioned object when the version target container is missing"
Merge "Fixed TestObjectController.test_PUT_auto_content_type()"
Merge "Unify different ring-balancing methods."
Merge "make test runner functions return the status of running the tests"
Adds links to docs.openstack.org

In the side bar, links to past versions and docs.openstack.org

On the index.rst, links to wiki and docs.openstack.org

Change-Id: Icf33c6f396e1ab016fd86a56e61df3e063a1bae2
Merge "Fixed grammar and improve docs."
Merge "Allowed the proxy to pass on the X-Timestamp header."