git-logs: Make script output raw wikitext

Allow passing of -o argument to specify a file to output
wikitext to. When omitted simply prints to stdout

Change-Id: Icc1a1e6dfae6eb245d5de7eed2d5bc12762aaa80
Merge "git-logs: Make script output raw wikitext"