Improve handling of massive diffs

- Do not show diff for files > 50000 bytes 
- only attach events once with jQuery's .on() as proposed in #318