Streamline url-parsing logic.
Clarify parsing issues and errors
Use http_parser_parse_url to parse urls
Unescape url-encoded usernames and passwords
Compile HTTP parser on win32 (for url parsing)
Fix ssh.c compile
Incorporate feedback
Remove unnecessary check
Make url decoding more bulletproof
Correctly quote config values while saving

If the value contains a command (; or #) char or starts or ends with space it needs to be quoted.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Add a testcase for values which needs quotes

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Add another testcase to make sure double quotes are correctly escaped

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Rename method

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Allow callers to set mode on packfile creation
Merge pull request #1952 from ethomson/packfile_mode

Allow callers to set mode on packfile creation
update example to new packfile creation signature
Merge pull request #1953 from ethomson/packfile_example

update example to new packfile creation signature
Merge pull request #1936 from libgit2/better-url-parsing

Streamline url-parsing logic.
Merge pull request #1950 from csware/quote-config-values

Correctly quote config values while saving
config_file: style