Added error handlers to akjax requests send via JQuery. Centralized much of the ajax code. [Fixes #58169250]