Added event add and remove listener functionality, and readyQueue to loki.utils. Added debugMode reference to loki.refs.
Added debugMode reference to loki.refs.