Use event emitters for logging
Remove ncp dependency