+ /*
+ * Note about the utility functions below.
+ * We have roughly 3 groups of operations:
+ * 1) Regular system usage for tracking time, etc.
+ * 2) Admin usage - used infrequently.
+ * 3) Export - used infrequently.
+ *
+ * TODO: we also have user registration process without initialized user.
+ * Perhaps we need a separate helper class for this. Think about it.
+ *
+ * It is tempting to have a generic function to get things done for
+ * all situations. However, as export and admin access are one-off
+ * operations, while regular system usage is daily and must be efficient,
+ * the current approach is to have SEPARATE functions for each mode.
+ *
+ * This is because each mode requires a slightly different approach,
+ * and we don't want to over-complicate things.
+ */
+
+ // getRoles - obtains all roles defined for team.
+ function getRoles() {