add applyRules method to HTML5util and refactor facades.