Refactorise Keystone resources management

Refactorise the code of Keystone resources management with backward
compatibility since we don't modify the unit tests.

Change-Id: I1c130653a9594984dc59cc719e87bbfc40d88132
Implements: blueprint common-openstack-identity-resource