Adding a new utility class to easily use pipelining. Add a isPending method to promises