Improved utilities for parsing logs.

spherelogviewer: important changes to determine type of trial,
compatibility with previous logs.

some useful scripts to process very old logs (2013/12/19 or older)