Return JSON string in GetStaffAppointments

Also add GET variable support for AJAX queries.