Introduce git_buf_putcn

Allows for inserting the same character n amount of times
Introduce git__date_rfc2822_fmt. Allows for RFC2822 date headers
Added RFC2822 date format test cases
Fix const-correctness of git_patch_get_delta
Added format-patch support
Added format-patch tests