Attempt to chain deferreds
merging in latest patch

Merge branch 'openid' of github.com:sociam/indx into unstable