Add Sync now to group members page
Closed #400 (closed)
Add ability for a group admin to sync LDAP groups on-demand.
I added the 'pending' state to make the UX better. If a user clicks 'Sync now', we enqueue the job but it may be a few seconds or minutes until the job is actually picked up. In this case, user would be redirected to the group member page and the 'Sync now' button would be available again. Pending status shows that the group will be synced, before it is actually synced. If we already set it to 'started' then the group sync will fail when it checks that the status says it's OK to sync.