convert from Javascript Promises to goog.Promise
Merge pull request #388 from bstell/master

convert from Javascript Promises to goog.Promise