Refactorise Keystone resources management

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

Also add puppet-keystone in metadata.json.

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