Respond to HEAD requests

When responding to a HEAD request all the database work is done,
but serialization isn't, saving a bit of CPU.

Fixes #41
Fix logging errors with HEAD requests
Merge pull request #42 from pnorman/head_request

Head request