Retain commit hashes of parsed messages.

Primarily for debugging.
Set proper locale, to avoid grep errors.
Always print warnings as they happen.
Use stronger regexp for beginnings of messages.
Make extra sure that stats lines are in expected format.
Added TODO item to reuse parsed data.