Patched with jasmine-as-promised

Extension of the Jasmine Spec::runs() to support promises.
Subsequent unit tests will wait for a promise to resolve/reject or
timeout before continuing. (see
https://github.com/ThomasBurleson/jasmine-as-promised)