Commit parser

Also, searching around hg...seems there is a mix of using logging, >> sys.stderr, and sys.stderr.write....  I think we can agree with whatever makes sense for this project and stick to that convention.