Fix windows link error by linking against QtXml

See http://www.richelbilderbeek.nl/CppLinkErrorUndefinedReferenceToQListData.htm
Add first implementation of qMidasAPI

It is an adaptation for Midas of the work done in qCDashAPI.
Add missing forward declaration for QVariantMap.
Add support for query returning array of scripted values.
Ensure resources are release when querying a local file.
Remove extra debug output
Remove trailing whitespace + replaces tabs with space
Add qMidasAPI::timeOut to abort network request.

qMidasAPI::synchronousQuery was returning an empty list when timing out.
Ideally a timeout error should be specified, instead it is a
qNetworkReply::OperationCanceledError.
XNAT support

Common functionality with Midas pulled up to a common base class, qRestAPI.

New features added for XNAT:
  - https support
  - discard SSL errors
  - set raw headers in the requests
  - support for file download, put, post and delete request

Various refactorings and minor fixes.
Unit test uses https://central.xnat.org
Build as shared library by default.

Added option "BUILD_SHARED_LIBS" allowing to build either
qRestAPI shared or static library.
Convert CMake-language commands to lower case

Ancient CMake versions required upper-case commands.  Later command
names became case-insensitive.  Now the preferred style is lower-case.

Run the following shell code:

cmake --help-command-list |
grep -v "cmake version" |
while read c; do
    echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
qRestAPIConfig - Do not explicitly find library - Rely on exported target

Since target are exported, it is not needed to use "find_library" to
get the full path of the library. After calling "find_package(qRestAPI)",
project can safely use "${qRestAPI_LIBRARIES}" or "qRestAPI" within the
"target_link_libraries" call.

Not also that since the library is imported
as a CMake target, using "target_link_directories" is also obsolete.