Fixing Promises

Passed deferred promises and added a done on the end of the promise
train.
Added Haxfred.emit() unit tests
Updated mocha dependency version