Error messages and bob{} - See commit description.

* controllers/_database.php : refactored some functions.
* views/css* : Styled .notice and added some minor fixes.
* views/js/main.js : Removed the unfinished ajaxLoadPage() and re-coded
the match() regex for bob{}.
* views/view.base.php : Display error messages if exists.