fix unbound variable reference

parse_daemon_config references zerovm_network_type, but it isn't set
yet.  this moves the config load of zerovm_network_type before
parse_daemon_config for less stack dumpage.
Fix opaque descriptor

opaque descriptor (for zbroker, anyway) is
"<broker_name>|<direction><pipe_name>", with direction being either ''
for read, or '>' for write.  update to match this format.
zerocloud: avoid swift dependency for gettext (fixes #50)

Importing Gettext from Swift won't work out of the box. Swift relies
on a $SWIFT_LOCALEDIR environment variable being set in order for it
to find its compiled message catalogs (the .mo files). That variable
generally not set when running ZeroCloud.

Furthermore, we have begun marking our own strings for translation
with the _ function. This means that we need our own message catalog
if there is any hope of them being translated.
zerocloud: don't translate error messages

A server side application should probably not translate its strings
into the language of the server -- we don't know the language needed
by the client. It seems better to just keep the error messages fixed
in English.
Merge pull request #51 from mgeisler/no-swift-gettext

Remove swift gettext dependency
Merge pull request #52 from rpedde/icehouse

Fix unbound variable reference and opaque descriptor format
fix broken test after opaque string fix in #52

just changed regex
Merge pull request #53 from pkit/opaque

fix broken test after opaque string fix in #52
pep8: trailing whitespace
Merge pull request #54 from pkit/opaque

pep8: trailing whitespace
replaced methods with static functions

converted methods to static functions, can be used in other tests
moved more methods to static functions in tests
Merge pull request #55 from pkit/tests_fixes

replaced methods with static functions in tests
changed SwiftPath to better support various URLs

now can use container only or account only URLs in `swift://` path
Merge pull request #56 from pkit/minor_fixes

changed SwiftPath to better support various URLs
fixed bad behavior when rewriting output

In case where output device has `Content-Type` : `message/cgi` or 'message/http` and it's a `WRITABLE` device and it is a local device the file needs to be rewritten on disk

Why?

Because if it's a writeble local file it will be relocated to be an object in-place and then we need to delete all the `message` headers from it. Headers are only needed when such object is sent back over HTTP, but not when it's stored.
To rewrite such object we used mkstemp() which creates a file in `/tmp` by default. But according to Swift rename rules temp object must be on the same device as the intended real object.
This patch uses mkstemp(dir=swift_temp_dir) which places the temp files in a correct dir
Merge pull request #57 from pkit/object_fixes

fixed bad behavior when rewriting output
refactor config variables in middlewares

optimized load of the config files in proxyquery and objectquery
now both of them will load some vars from corresponding server config (proxy-server or object-server)
it should avoid duplicating vars for both middleware section and server section
move retcode_map to module level constant
Merge pull request #58 from pkit/minor_fixes

refactor config variables in middlewares