CaseManager, ContextManager, Queue and Ajax

CaseManager fixes for UI formatting, Context, Ajax and Queue bug fixes.
(One in context is a fix for caseDetails)