hgk: add .diff extension when exporting commits

Append the .diff extension automatically.
hgk: use hg export to write commits

Instead of calling internal command, use hg export to produce changeset
diffs compatible with hg import directly.