client post multipart fixes
server post multipart fixes
Merge pull request #27 from sm00th/multipart_fixes

Post multipart fixes
Adding support for repoDeps metadata option.

The option's goal is to fetch non-yum repository dependencies such as common
include 'tests'. Tets are fetched from the same repository as the 'main' task.
At the moment this only works for 'git' repos, http/https support is yet to
come.
repoRequires http[s] support

Added support for SoupURI fragments to fetch_http and http repoRequires
dependencies.
Returning support for nonfragment http urls.

Previous commit broke http fetches without fragments.
Properly handling g_key_file* errors.

Fixing error handling which was broken by improperly adding repoRequires key.
fix boundary printing in multipart messages
turn off message accumulating in multipart messages
free client data in client disconnect method.
turn off message accumulating in multipart messages
Adjusting path_prefix_len for leading slash inconsistencies.

Tasks usually have leading slash in their names, dependencies usually don't but
in some cases(e.g. old rhts rhtsrequires deps) they do.
restraint_fetch_repodeps() now checks if main task and dependency has leading
slash and adjusts path_prefix_len according to that.
Metadata test update

Updating test_metadata.c to include repodeps tests.
Dependency test fix.

Fixing dependency test to work with new restraint_install_dependencies()
base_path added to Recipe struct.

Added base_path to Recipe struct, this will allow to write a working repodeps
tests and takes us one step closer to configurable base_paths.
http_fetch: report error on failed fragment extract

When extracting with 'fragment' report error if nothing was extracted.
repodeps tests in test_dependency

added repodeps tests to test_dependency.c
'Fragment' http tests added.

Added tests to check http fetches with 'fragment' urls.
Move external watchdog from 5 minutes to 30 minutes

This matches what is done in legacy rhts.
Merge pull request #28 from sm00th/repodeps

repoRequires support
Fix repodeps code to not try and process none fetch method tasks.
update restraint client.

 - remove localhost as default, require --host be passed for each recipe in --job
 - report which host is being connected to for which recipe
 - if any task fails return non-zero on exit