Some misc. changes/fixes.

:exclamation: this PR is based on seantis/seantis.reservation#38, please merge that one first.

* remove console.log and some whitespace from js files.
* use ``safe_unicode`` when formatting resource titles.
* use different assertion methods to improve readability and error messages.