Make datasync more reliable.

Now it saves the cursors so it can pick up where it left off if
something goes horribly wrong.
Merge pull request #19 from djpetti/devel

Make datasync more reliable.