Refactoring promise implementation for Nextweb API
Autocommit Mon Aug 11 11:46:43 EST 2014