Improved parser.js. Accepts more different log-file formats.