Adding a new utility class to easily use pipelining. Add a isPending method to promises
Merge pull request #27 from manolo/master