refactor deep.promise in deep.when
Merge branch 'master' of https://github.com/nomocas/autobahn