Cleanup and pep8 fix.
Add splitted POST sync design docs (#5571).
Split sync in multiple POST requests in server (#5571).
Split sync in multiple POST requests in client (#5571).
Allow for interrupting and recovering sync (#5571).