Update middleware that was moved to keystonemiddleware

S3Token middleware has been moved (and slated for removal) in the
Juno Release. This Middleware has been removed from Keystone.

Keystone now uses the middleware located in keystonemiddleware for
providing the code for ec2_token middleware. The middleware class
in Keystone has been deprecated and is slated for removal in the
L release.

Change-Id: Iecda3400c0450bbeed42093dc916825d89b2c3fe
bp: split-middleware
Check url is in the 'self' link in list responses

Method RestfulTestCase.assertValidListLinks (test_v3.py) doesn't have
any information about the request, so the check of the 'self' url in
links collection is very general:

self.assertThat(links['self'], matchers.StartsWith('http://localhost'))

This fix adds an optional 'resource_url' parameter.

The ability for the assertValidListLinks methods to check the url will
also form the basis for testing of bug 1195037 ("Self" link in v3
collections omits any url filters).

To test this fix test cases in test_v3_identity.py were updated with the
optional 'resource_url' parameter.

Closes-Bug: #1348063.

Change-Id: Ifaf641e635709cbbefcde9f4908a1251a38a0405
KeyError instead of exception.KeyError

KeyError is a built-in error. Not part of Keystone exception module.

Change-Id: Ia3723c71fcd80773c2ac6f49ec7a7ab8bed602ad
closes-bug: #1349955
Updated from global requirements

Change-Id: I3aa1b69757cdf00cfd022eec0fc2315e6d7bde6b
Merge "Update middleware that was moved to keystonemiddleware"
Merge "Check url is in the 'self' link in list responses"
Merge "Updated from global requirements"
Merge "KeyError instead of exception.KeyError"