(#136) - Fix _changes ordering assertions in replication tests

In CouchDB 2.0, _changes is not guaranteed to be ordered. Sort the response before making assertions on the contents.

I've also removed duplicate definitions of the simplifyChanges function so this sort only occurs in one place.