Add magic-encoding to Gemfile, and refresh *.rb files.
Add resources :questions to exam.
Add sub resourses records to exam.
Delete unused records views.
Modify orders of course sub resources.