Handle TSV as well as CSV

Detecting whether the input is CSV or TSV is done only by counting
the commas and tabs in the first 5 lines of raw_csv - the one with the
highest number wins. If there are equal numbers of both potential
separators then tab is used - that was an arbitrary decision.