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
Merge "Check url is in the 'self' link in list responses"