Don't append %interface with ipv6 ips.

- Since netifaces is appending a %interface (i.e: %eth0) at the end and
  does not make a correct ipv6 address we are removing it.
- Improve the tests of whataremyips along the way.

Closes-Bug: 1209443
Change-Id: I585e795083783009961b429607ca3f66b8d7ec30
Implements configurable swift_owner_headers

These are headers that will be stripped unless the WSGI environment
contains a true value for 'swift_owner'. The exact definition of a
swift_owner is up to the auth system in use, but usually indicates
administrative responsibilities.

DocImpact

Change-Id: I972772fbbd235414e00130ca663428e8750cabca
Some how DELETE not using _parse_path()

It seems as this conversion was missed, as a git blame says the first
few lines of DELETE date all the way back to commit 001407b9 "(creiht)
2010-07-12 Initial commit of Swift code".

While we were in here, we moved _parse_path() to a module method as
there appears to be need to keep it as an object controller method.

We also fixed up as many of the tests that directly invoked the object
controller methods to use get_response(), addressing a few
inconsistencies along the way.

Change-Id: If491c7129d61d6fc7d81401fbc3650c29ed80465
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Merge "Implements configurable swift_owner_headers"
Merge "Some how DELETE not using _parse_path()"
Unify DatabaseBroker.reclaim

Both AccountBroker and ContainerBroker install their own reclaim()
methods, which are the same, modulo the table and column names.
Also, the parent reclaim() method is unused, except as a tramptoline
to test _reclaim().

This patch gets rid of the unused code by moving it into the tests,
and unifies the reclaim() method in DatabaseBroker. We use the
same class parameters that are already in use elsewhere.

The unused code was found when documenting the DB broker API for
the LFS. The unification fell out of reviews by Clay and Peter.

Change-Id: Ic5e38a9e39dafe8e0bc062818151edece384f3b5
Merge "Unify DatabaseBroker.reclaim"
Use randomly named file for temporay file

Use tempfile.mkstemp to generate temporary
file to avoid collision with an existing 'test'
file in /tmp.

Change-Id: Ic2f7f64ee9826afa6f04debd763e8c7a0eb25988
Fixes: bug #1213845
Merge "Don't append %interface with ipv6 ips."