Better error reporting for AJAX fails, closes #32

* show alert() for all ajax errors
* change header on search page when errors occur
* log errors to console with detailed infos