Adresses #191 - Added method for ajax error logging.