Some ReUI refactoring. Replaced bind/unbind using dojo/on, replaced apply with dojo/_base/lang mixin, replaced timer functions with setTimeout and setInterval, replaced dispatch with dojo/on emit.