Make OO.ui.Element.onDOMEvent/offDOMEvent static

Retain the methods as wrappers, but add static functions so they
can be invoked on things that aren't this.$element

Change-Id: I34756c9ac975111346c0ebdf60bf6122e1cade9a