Add weighted selector specificity and tests
actually assign the sorted array of selectors to something...
Merge pull request #569 from amro/fix_selector_weight

This PR adds selector weights to sort selectors by specificity