Convert long querystrings to sha1 to fix errors due to long file paths

When saving files to cache
Remove pagetrees before diffing text to make diffs more meaningful