fix for .when
Merge branch 'master' of github.com:ondras/promise
added public domain notice