Added event listener pieces
Converted all console logging over to event emits.
Added logging infrastructure to console.
Merge pull request #2 from christav/logging

Logging infrastructure