Extend get_client_manager to support roles

Extends get_client_manager to support the credentials by role case,
so that tests can rely always on this function to get a client manager.

Change-Id: I42ce8dfdd2b4ce1ed2dda307dc3b782fd7f4a8a5
Partially-implements: bp/resource-cleanup
12 files changed