Implement purgeStatus and queueLength functions.

purgeRequest now calls callback function if it's passed.