Strip git specific footer in git-patch-to-hg-patch

With bonus whitespace and dead code removal