chore(server): handle HEAD for key space efficiently

Implement HEAD in server/v1 and server/v2 functions to avoid
time wasting on JSON marhsal.