Change the history so it uses MD5, not just timestamps
Test the history stuff with a not-yet-flattened item
Add a test and code for flattening an item with one changeset