Added tests for changeset upload code. Refactored diff reading code and put it into...