Template tweaks to notifications area in accounts section

* Made table border consistent with rest of the accounts section
* Handle HTML in notifications
* Fix unread notifications display in navbar (done by @maikhoepfel)

Fixes #875.
Fixes #869.