571 diff size limit

this closes #571 for now. diffs are only generated if the files for the diff are not too large.