fix some test peculiarities

mostly fixed strange json behavior
because tests run python code from strings pyflakes was not detecting proper import usage
Merge pull request #126 from pkit/tests_fix

fix some test peculiarities
Merge pull request #125 from pkit/minor_fixes

remove unused functions
objectquery: factor out sysimage prep

This moves system image preparation out of the `ObjectQueryMiddleware`
and into a util function in called `get_zerovm_sysimage_devices`.
Merge pull request #128 from larsbutler/code-cleanup

Code cleanup
fix leaking of unneeded headers to applications

`X-Storage-Token` and `Cookie` headers were leaked into CGI environment
There is no need for an application to know that information
Merge pull request #131 from pkit/bug_fix

fix leaking of unneeded headers to applications
objectquery: simplify closing of file objects

This takes advantage of the file context manager (`with`) to simplify
closure of files. This patch removes several explicit `fp.close()`
statements.
Merge pull request #132 from larsbutler/simplify-fp-handling

objectquery: simplify closing of file objects
add doc regarding CGI environment

most common vars in CGI environment explained
Merge pull request #133 from pkit/doc

add doc regarding CGI environment
objectquery: detailed docstring for `zerovm_query`

This adds a lot of detail about all of the response codes that can be
returned and the possible causes.
Merge pull request #136 from larsbutler/document-zerovm_query

objectquery: detailed docstring for `zerovm_query`
vagrant: improve the local dev env

The git clone on the host is now mapped in to the VM, and changes to the
code in the host dev environment will be reflected inside the VM (after
restarting devstack, of course).

This makes it a lot easier to experiment, debug, and test in a "real"
environment (and not just with the test suite).
Merge pull request #135 from larsbutler/vagrant-dev-env

vagrant: improve the local dev env
objectquery: make zerovm_query a wrapper method

This change moves all of the zerovm_query code to another method:
_do_zerovm_query. zerovm_query now just simply calls it and returns its
return value.

This will allow some flexibility in refactoring the implementation of
this rather long method.
objectquery: zerovm_query: raise instead of return

Instances of `swift.common.swob.Response` can be either returned or
raised as an exception. Due to the monolithic nature of
_do_zerovm_query, raising exceptions for HTTP responses gives us some
more flexibility than simply returning values. This means that the
implementation can be broken up and factored into multiple smaller
subordinate functions. Raising exceptions (and catching/returning a
value to maintain the interface of `zerovm_query`) makes routing these
responses a bit less tedious.
objectquery: debug logging for query responses

This add debug-level logging for all HTTP responses in `zerovm_query`.
vagrant: make swift config script more flexibile

This makes the swift easier to customize by adding arbitrary config
params to each config file.
vagrant: set log level to DEBUG on object nodes