Issue 719 add title to error templates

Add titles to 404.html and 500.html.

Builds on contribution by @dieselpoweredkitten.

Closes #719.