Make logfile line parsing reusable.

This is in aid of reusing logline parsing code in Soup Stash's logfile importer:

https://github.com/broquaint/soup-stash/blob/master/script/logfile-parser.pl

The sqllog.pl code should continue to operate as before.

Cheers,
Dan aka broquaint