Allow for HEAD REST requests for rows

A proper handling of `HEAD` requests in the REST API. Builds on Finn's insights in #181 and supersedes it.