Obscene ton of code for json requests and stuff in the SyncModule. If it works correctly it handles the client registration and group registration forms.