fix bug 1063621 - Use changesets in load scripts

Refactored some common code into tools/client.py