Re-factorise Keystone resources management

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

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