Added repositories to getAllUsers and subjectsources to getAllSubjects for JSON output