Add option to output fieldnames as headers

Adds a new -j option which outputs the query field names as the
headers of the output. Defaults to off to keep the old behaviour.