frontend: tournament error page: made header type consistent
backend: improved hashing slightly (now directly hashes the incoming request string) and made sure database connection is cleaned up after each request (mainly fix for admin interface where no manual cleanup is possible)