course message

-Minor fixes: block_savepoint was wrong in upgrade.php, missing string [nomailerror->mailerror]
-Merged controller code into one big class -> ajax requests now all go through the same file
-viewmessage.php code split into controller/view and placed in either ajax_controller or mail_view