Closes Bug 1109976 - port ruleClassify() to nodejs

a port of ruleClassify() from https://github.com/mozilla/interest-dashboard/blob/master/data/interests/interestsWorker.js  along with corresponding tests