Set Exam Mode

Added a set tabs method.Fixed bugs in template and added functionality to set exammode to either ""(None), Final or Midterm.

Note: We cant still set the examMode from the site. It has to be done manually as the put request is not successful.