Using common method 'bool_from_string' from oslo strutils

Using common method 'bool_from_string' from oslo strutils to replace
utils.string_to_bool.

partially implements blueprint common-client-library-2

Change-Id: I22ee9c5a4b48e85606e033ab87d4adb72b665ee6
Remove support for old Swift memcache interface.

Since this has  been removed since a year, it's time to clean this up.

Change-Id: I6681a31f675f2178285dadea876af1fdb7a8a4c3
Update middlewarearchitecture config options docs

The configuration options documented in middlewarearchitecture.rst
were incomplete. This change adds all the options defined in
middleware.auth_token.

Change-Id: I4a479bfa90e941f5094516cdb97cd58f91727f1c
Update reference to middlewarearchitecture doc

auth_token was referring to the middlewarearchitecture doc in
keystone developer docs rather than python-keystoneclient.

Change-Id: I7bfb3595097cc4a2a1061efe5c4480e06a499edb
Add back --insecure option to CURL debug

This was added in review: https://review.openstack.org/#/c/53500 but
lost in the conversion to using session. Add it back again.

Change-Id: Ia063eb018d3a7da706a02d60df63bfa1be21d147
Related-Bug: #1249891
Fix debug curl commands for included data

Include the submitted data in the curl debug statement.
Initially fixed in: https://review.openstack.org/#/c/53501

Change-Id: I4e3e9e4799a508666fb37fafe864eea25b676836
Closes-Bug: #1249891
Update my mailmap

Using new email address.

Change-Id: I10aba0fc0b175c00508ffdb75c2e292aafac7b09
Python 3: call functions from memcache_crypt.py with bytes as input

These functions expect bytes as input, but in Python 3 they were given text
strings.

Change-Id: I39fa15b8d5d56dc536e0bd71a50cf27da3d03046
HTTPretty: Bump to 0.8.0

The 0.8.0 release brings full support for Python 3.

Change-Id: I7237c986efffa0474f7d76bca69a08a26b21adbd
Closes-Bug: 1249165
Sync openstack/common/memorycache.py with Oslo

This fixes an issue in Client.get(), where a dictionary was modified as we
iterated on its keys, which does not work in Python 3.

Change-Id: I37583504dcc672060a3d780dce46418baa32dd53
Remove vim header

We don't need vim modelines in each source file, it can be set in
user's vimrc.

Change-Id: Ic7a61430a0a320ce6b0c4518d9f5d988e35f8aae
Closes-Bug: #1229324
Python3: use six.moves.urllib.parse.quote instead of urllib.quote

This makes the code compatible with both python 2 and 3.

Change-Id: Ic1c5c8d4a85db138a8402ea4b3208828fc118a40
Remove tox locale overrides

* tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were
introduced originally during the testr migration in an attempt to be
conservative about the possibility that locale settings in the
calling environment could cause consistency problems for test runs.
In actuality, this should be unnecessary and any place where it does
cause issues ought to be considered an actual bug. Also, having
these in the configuration actively causes older pip to have
problems with non-ASCII content in some package metadata files under
Python 3, so drop it now.

Change-Id: I96581dced7eac202d6715837037bb1c002550a14
Closes-Bug: #1277495
Make sure to unset all variable starting with OS_

Some OS_ variables are conflicting with the tests, make sure to unset
them before starting the CLI tests.

Change-Id: Ie4ef467571137a685976d36026866889f7a2a1a8
Closes-Bug: 1278144
Merge "Remove tox locale overrides"
Merge "Remove support for old Swift memcache interface."
Merge "Make sure to unset all variable starting with OS_"
Merge "Python3: use six.moves.urllib.parse.quote instead of urllib.quote"
Merge "Python 3: call functions from memcache_crypt.py with bytes as input"
Python: Pass bytes to derive_keys()

This call was missed in d71b5b3.

Change-Id: I0705dbefa5893e0ff5b786202f58fb254939ae76