Merge pull request #150 from humphd/brackets-needs

Fix EventEmitter to match that expected by Intercom
Added shell.mkdirp. Fixes issue #126.
Merge pull request #152 from pbouianov/issue126

Added shell.mkdirp. Fixes issue #126.
Refactor errors code, fix to better match node
Generate errors instead of hard-coding, with tests
Rebase and fix failing tests in mkdirp