Add empty pool check to test
Avoid stack retain in RedirectError
Convert Ajax to named class and explicitly clean

More memory management work.