Base: Improve ajax queue and properly clear on cancel