Implement purgeStatus and queueLength functions.

purgeRequest now calls callback function if it's passed.
Merge pull request #1 from rafaelmenta/master

Implement purgeStatus and queueLength functions.