Refactor rulechecker

Remove all tabs and unnecessary whitespaces
Extract out analyzeStylesheet function
Create a statistic partial function for percentiles