Added common utility function to get currently logged in workbench user's id which gives preference to context information passed from workbench first and falls back to the old method of resolving when it can't. Similar to how a project in context is determined. Added unit tests for the core methods of ContextUtil class. Cleaned up logging statements to be one liners.

Issue: GCP-8800, GCP-9026