Refactoring promise implementation for Nextweb API
Autocommit Mon Aug 11 11:58:52 EST 2014