use event emitters for async nano operations

I commented the code on the PR
Merge pull request #1 from robertkowalski/2369-Adding-Nightwatch.js-to-test-Fauxton

use event emitters for async nano operations