Modularize getTerms() and getSubjects()

Combine getTerms() and getSubjects() into getOptions() function.
Add getCourseInfo().