Refactored duplicate diff methods in color.rb and html.rb

Noticed some duplicated code so refactored it. Passes all specs in spec/shell. Naming could be better, willing to rework that.