YAJL is required to build.
No man page to install for bgrive.
Fixed make on fedora 17.
Fedora 19 has json-c as library libjson-c and no longer as libjson. Fixed cmake module to respect this change.
Define PACKAGE & PACKAGE_VERSION for bfd.
Add json-c as primary name for JSONC_LIBRARY.
Add delay before auth token refresh

This is sometimes necessary to prevent too frequent requests.
Fix hang when upload receives HTTP 500

When an uploading PUT request got a HTTP 500 as reponse, grive hanged
forever inside libcurl. This was because the File parameter was not
rewound to 0 position on retry. The XmlResponse had to be cleared as
well.

Rewinding the File and clearing the XmlResponse were not enough to fix
the problem, because when retrying after 500, HTTP 410 Gone or 412
Precondition failed is often received, and CheckHttpResponse would throw
an exception that crashes grive. Therefore, I implemented a retry logic
to Resource::Upload that retries the whole upload transaction if 410 or
412 was received.
Retry upload on XML error instead of crashing

Sometimes the Google Drive API sends malformed XML which crashes grive.
This patch adds a simple try-catch to Resource::Upload that retries the
upload if an XML exception is thrown from AuthAgent::Put.
Fix json-c library name.
Merge remote-tracking branch 'pblaszczyk/build_failure' into pullukka

Conflicts:
	cmake/Modules/FindJSONC.cmake
Merge remote-tracking branch 'yarogami/stability-fixes' into pullukka
Merge remote-tracking branch 'vehre/master' into pullukka

Conflicts:
	bgrive/CMakeLists.txt
Skip bgrive, install docs.
Spec file for building directly from github.