Refactorise Keystone resources management

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

Change-Id: I8fc27ea6cc49a4c0c518f7314b3277d6980491b4
Implements: blueprint common-openstack-identity-resource
Merge "Refactorise Keystone resources management"