A minimal and fast promise/deferred implementation