Deferred functions using promise

Replace internal usage of Deferred with Promise

Review URL: https://github.com/google/traceur-compiler/pull/521

Closes #521.