Add Element.matches() method.

See https://developer.mozilla.org/en-US/docs/Web/API/Element.matches
Update mocha dependency to 1.17.x.