ZF-8468: Deprecate getRegisteredRoles(), add getRoles() and getResources();

Description

Comments

Done as of r19540 .