Added attemptnumber to Exam

Added cantake table (:has_many :through for convinience)
Added a number of migrations... run rake db:migrate
Modified Exam.createInstance() to reflect attempnumber changes