notification_prefs: add ajax endpoint to get preference status