Refacter some code about file structure and adding courses.

Move almost all embeded javascirpt code from course_picker.php to CourseSelecitonCore.js.
Using CoursesHandler object instead of global variable added_courses_list and remove some messy manipulation.