Make everything in audit middleware private

To avoid issues with what is public and private in our middleware layers
we typically make everything private.

Change-Id: I8bcd5727877c0dcdc2f276f827b2e9050fb159d6
Updated from global requirements

Change-Id: Iff49fe23f0c18a4e33b2437d97e85490415b2fcc
Use real discovery object in auth_token middleware.

Auth token middleware has always done its own version of discovery. It
is slightly more lenient than the one in keystoneclient however we
should use the standard tools for these jobs.

Move the handling of this discovery into the plugin. This is inline with
how auth plugins work and will make it easy to replace with other
plugins.

Change-Id: I3c4ff5bed1aa76dfff8e445de5a384c3f7992bbe
Merge "Use real discovery object in auth_token middleware."
Split identity server into v2 and v3

We make the IdentityServer object an abstraction layer between v2 and v3
APIs as the whole object. By doing this we don't have to check at the
beginning of every function whether to use v2 or v3. This will be
important when using auth plugins because the expected workflow is just
to issue the calls and see which ones fail with EndpointNotFound and so
we would have to reorder the code to possibly issue each call twice.

We need the additional test discovery entries as discovery now happens
when you instantiate the IdentityServer object - not when you use it.
This will have no practical difference, it's just that in testing we
sometimes create the object to read values from it.

Change-Id: Ie05d99946c2b1127992cd9a083a2068a6e80398b
Auth token tests create temp cert directory

The auth token tests were using the example signing directory as the
default signing directory. This is dangerous because the auth token
middleware may write to the directory in the course of the tests.
With this change, a temporary directory is created for each test
that's populated with the sample files.

Test this by doing `chmod -w examples/pki/certs` before running the
tests.

Change-Id: I139c6f0602d3258ac65ffe54bc0e7c3f82d14264