add favorites, and other fixes (team invites, popover content)
add tests
Merge pull request #1117 from jay-hodgson/SWC-1625

Swc-1625: add favorites, and other fixes (team invites, popover content)