CodeIgniter

Started moving our files to CodeIgniter framework.
Completed CodeIgniter Movement

Also added checking if course name is in the list of courses
Fixed database queries
...
Merge remote-tracking branch 'origin/CodeIgniter'