Make consumer_for a context manager

This patch converts consumer_for into a `contextmanager` decorated
method and adapts `__getattribute__` to support this change. A new
method was not added to avoid clashes with method names in the stages.

Change-Id: I6c0727e86d9ee8d6bd34c312d180040c8baf34ba
chore: Remove remaining proxy cruft

Finishing up the removal of the deprecated proxy stuff.

Change-Id: I48f2dc3f382bc882b2e006c17438301c6ee92df9
fix: Reduce logging severity of certain errors

Here are the proposed changes:
- OverflowedJsonInteger: exception -> debug
- InvalidJson: exception -> debug
- InvalidQueueName: warning -> debug

Rationale: these pollute the server logs and provide little value to
system operators.

Change-Id: Icd73a5bd3fc7d7ef349b18e7e485df8a7dfc0a1a
Closes-Bug: #1246977
Remove gettext magic and import _ explicitly

Instead of magically loading `_` into python built-in globals, import it
explicitly where needed.

Partially-implements: py3k-support
Change-Id: Icfedf9f86ead81bbee038506a91c456907af0d05
Disable keystone client if running under Py3K

Since keystoneclient is not Py3K compliant, it should be disabled when
running under python >= 2.7

Partially-implements: py3k-support
Change-Id: I9016748b3fc65f1437cb0d561b738ede704f642f
Don't use tuple parameters

Tuple parameters where removed from Py3K.

Partially-implements: py3k-support
Change-Id: Ibc57f5f3b25c240f48f5c1d9e54cd1d8e5972ea3
Use relative import for base in tests

Py3K fails to import base for tests. Use a relative import instead of an
absolute one.

Partially-implements: py3k-support
Change-Id: I3f3ef511c199a38a8e99c578364b80280f673226
Remove the __MARCONI_SETUP_ global from init

This was used to know when Marconi was being loaded and avoid
registering configuration options and doing other things. This is not
necessary anymore.

Change-Id: Icf43302581eefb563b10ddec5831eeec0d068872
Partially-Implements: py3k-support
Merge "fix: Reduce logging severity of certain errors"
Merge "Make consumer_for a context manager"
Merge "chore: Remove remaining proxy cruft"
Return relative URIs for href-template of homedoc

Based on current implement, some href-template of homedoc
are returning absolute path ('/queues'...). It may cause
a 404 error because client may join a host with the path
directly. This patch will make sure all the href-template
start with /v1 and add unit test case to make url joining
works well.

Fixes bug 1245656

Change-Id: I12059249135cdb82be7d1937cf65db5da860011b
chore: Bump version to icehouse-2 dev

This patch makes our version more specific in preparation for doing
interim project releases for each OpenStack milestone. The OS wiki
does not specify what to do about "development" versions, so I
decided to follow the standard Python convention.

Change-Id: Icae5b7abbb33969a60b3a517b9a016016180d0f5
Added logging to HTTP errors

Checked to see which errors where missing logging in the transport and
added logging to the ones that were missing.

Change-Id: I62b123c9d03c5006e58bf8ec1e26617e7f6ced7f
Fixes-Bug:#1245987
Merge "chore: Bump version to icehouse-2 dev"
DRY queues storage error message format

This reduces the lines of codes by having all the errors inherit
from a base class. This base class takes keyword arguments and
formats all the error messages uniformly.

Closes-Bug: #1260392

Change-Id: I77fcd14e9fb8989c29e0796d813ef587a26f9199
Merge "DRY queues storage error message format"
chore: Sync local (marconi) requirements with global reqs

This gets us the latest Falcon, with its associated bug fixes, esp. wrt
accept header parsing.

Also fixed some hacking violations to get this to pass the gate.

Change-Id: Ic7bfc8210947f37078d034fc2f56cc04b2d88392
Implement tables and unit tests for sqlalchemy storage backend

This is a translation of the sqlite tables to sqlalchemy.

In addition, there are simple tests for tables creation and
some basic execute operations.

Partially Implements blueprint sql-storage-driver

Change-Id: I2860033c0c3bcc9b965209271af74161f3a62818
Implement DataDriver for sqlalchemy storage backend

Partially Implements blueprint sql-storage-driver

Change-Id: I84b67ac50e88645ef69a42860021d72c86a6d018