fix bug 785993 - show amount of words changed to revision comment

I have created 2 helper functions `comment_diff_percent` and `comment_diff_words` for giving estimation of content changed in terms of percent and words respectively. 

I created percent function in case words changed didn't give expected results.

Please let me know if I can refactor my code.