Allow env registry paths to be relative to env file

The default base_url is now derived from the location
of the environment file, so now resource registry paths
can be relative instead of absolute URLs.

This change also includes the following:
* more complete test coverage
* refactor of _process_environment_and_files and
  _get_file_contents to make test coverage easier
* use the full URL instead of just the file name in the
  'files' field to avoid key clashes
* make _get_file_contents less specific to the resource registry
  so it can be used for other inclusion tasks
* stop calling _get_file_contents recursively so that deep URLs
  do not get loaded, instead call _get_file_contents on
  resource_registry and resource_registry.resources.*
Closes-Bug: #1233912

Change-Id: Ic729cbcd1711b89e91daf0d645f4f56bae2accf3
Merge "Allow env registry paths to be relative to env file"
Replace mox with mox3

Mox3 is an unofficial port of the Google mox framework
(http://code.google.com/p/pymox/) to Python 3.
https://pypi.python.org/pypi/mox3

Align with global-requirement and update the importing clause.

Partial implement: blueprint py33-support

Change-Id: I5d46d30b72b8504977d8d1891b3b0c81714e9099
Import httplib from six.moves

Partial implement: blueprint py33-support

Change-Id: I4e2a7020c726717fa1e28926a04d97066bdf79ec
Updated from global requirements

Change-Id: Ib9080a3f924d23fe203d27cc23a4b8f666cbf5b4
Import urlutils from openstack common

Import urlutils for compatability issue
Remove obsolete code of Python 2.5 support

Partial implement: blueprint py33-support

Change-Id: I53515aa0f6f5c936e0d1a4f44b0ebf4998c59492
Use the six library for compatability

Replace dict.iteritems() with six.iteritems(dict)
Import six for StringIO
Import urlutils for urlencode

Partial implement: blueprint py33-support

Change-Id: Ieae1299915168ef10ff54e0a9e9a346350e9d1fb
Transform print statement to print function

Partial implement: blueprint py33-support

Change-Id: Ieed61447746bc5f598dcdfa89362aaa93f7c0dec
Replace urllib/urllib2 with urlutils

The update of urlutils is same as follows:
https://review.openstack.org/#/c/52875/

Partial implement: blueprint py33-support

Change-Id: Iac43acd616504ede12bcdb4df15e32bb636a09c6
align the order of parameters for urlencode()

In Python 3.3, hash randomization is enabled by default. It causes the
iteration order of dicts and sets to be unpredictable and differ across
Python runs.

In the test case, the fixed expecting string will not match the test
result, it is relying on the dict order.

This change transforms the input dict to a sequence of two-element list,
with fixed order, and exchange the order of "limit" and "marker" for
expecting string.

Partial implement: blueprint py33-support

Change-Id: If9c25fb0d457b31034111e7e879f1f95a576a78f
remove python 2.5 support for parse_sql

Python 2.5 is not supported anymore, remove the obsolete code for parse_sql.

Close-Bug #1243418

Change-Id: Ib87bde26a9b44555a36e3831f6aa33a6b3a4ba21
Merge "align the order of parameters for urlencode()"
Fix the testname of scenario

Duplicated testname in scenarios will result duplicated testname
by testscenarios, they can not be sorted in PY33 env, and will
induce TypeError:
TypeError: unorderable types: StackManagerNoPaginationTest() <
StackManagerNoPaginationTest()

Close-Bug #1243096

Change-Id: I4c02c9f3868495ec4399f795e864f26afc3d26b7
Print a more correct error with event-show

Just print out what the server sent us as the
error could be wrong:
- stack_name/id
- resource name
- event id

Change-Id: Ie48a549538a9809c8433b115537394a791d60147
Closes-bug: #1242947
Add doc/Makefile to help with building docs

Change-Id: I8894705891a02c06919e1b1c816ceb5137609b81
Partial-bug: #1153824
Resync doc/source/conf.py from heat for consistency

Change-Id: I77c5abbd22517ed99475b891d380583e06a04cf6
Partial-bug: #1153824
Remove the release notes as it is not maintained here

Change-Id: I7e558c23df59cba3668e3f3bcf6ca2413b72e178
Add a contibuting section to index.rst

This should make it look more consistent with the other
projects.

Change-Id: I2a3dd716215e68e2bafed17d059010ccb70d6ccf
Add a top level introduction to the index

Change-Id: Icfe152a2829c2cb82a0955b91052183d7c488510
Merge "Add doc/Makefile to help with building docs"