Context tenants refactoring

  Optimize tenants and their resources in context.
  Implement tenant related resources tree with tenant
  as root.

Change-Id: I974f3a02eeade3de6f6208642fa593832f7c62d9