add trigger for when the ajaxQueue becomes empty

I found myself needing something like this on occasion. Not sure if this is really the best way to implement. If others like the idea, and don't have better way to implement then I will try to figure out some tests to go with it.