Refactorise Keystone resources management

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

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