move logic from add-on to content, add groups lib, add some session experimentation