Error handling using exceptions

* Error handling with exceptions at: answer, deleteq, login, reportq, changepass, deleteacc, loadquestions, profile, register, search, settings, sent, viewq
* At prepend.php added functions `handleException()` which prints a warning message, and `requireLogin()` which redirects not logged in users to login.php