Removed extra spaces from sources. Added getGUI, isAJAX, and isCLI to App. Added misc. AJAX code. Added MySQL errno to AppException when thrown from MySQL class. Added admin controller to add/edit/reorder global priorities and types.