Group pages

Rework the login and sync flow. Added Group pages.