Add 'return to referer' functionality to error template.

Signed-off-by: Max Fierke <max@maxfierke.com>