Refactor deployers as event emitters
Fix the context of the done callback