Bug 1023520 - Add support for Promise returning methods on globals. r=bz