Clean and pep8 on couch.py.
Wait for last post request to finish before starting a new one during sync (#5975).
Merge remote-tracking branch 'refs/remotes/drebs/bug/5975_fix-transaction-log-order' into develop