Fix a possible crash caused by a dangling pointer
FolderWizard: Get folder map from FolderMan rather than store locally.

If the Folder::Map object is kept locally in the wizard, changes to
the map are not reflected there, as they happen when signing out.
This fixes bug #1875
Add missing cmakedefine for HAVE_ASPRINTF and minor cleanup.

Fixes windows build.
Shib: Ensure browser view gets closed before QNAM

Otherwise, QWebPage tries to delete its QNetworkReplies, which have
already been deleted by the QNAM destruction, who is their parent.

Fixes #1840
Shib: remove slotLoadFinished() from webview dtor

This is a relict from when the webview was reused.
It is now pointless, since it's now destruct-on-close.
Propagator: Give a more specific error message on file remove.

If the file is removed during it is synced up, there is now a correct
error message saying that, rather than "the file has changed during
upload."
Propagator: Handle file open error properly and log error message.
Fix regression over 1.5: Fix non-fba auth for Shib IdPs
SyncEngine: Use QSet for the seenFiles rather than QHash.

We can save some memory here as the seenFiles list can be long.
csync_vio_local: fix memory leak on windows
Syncengine:  Wait for the neon thead to be finished before destroying the Propagator and calling csync_commit

The legacy job might still need the neon session and the propagator.
We need to make sure the thread exits before.

This fixes crash when pausing a sync made with the legacy jobs
(for example when there is network limitation)
This should fix https://github.com/owncloud/enterprise/issues/200
Legacy propagator jobs: Do not limit bandwidth when aborting

When aborting, we want the last job to be as fast as possible
as it blocks the UI.  So don't limit the bandwidth in that case
Fix resource leak in win32 code path, added free of locale filename.

This fixes Coverity CID 12901
Updater: Free tmp variable that might point to temp malloced memory

This fixes Coverity CID 12900
Fix use-after-free in QNAM propagator

This fixes Coverity CID 12929
c_time: Fix resource leak in error case

This fixes Coverity CID 12903
Fix potential memory leak

This fixes Coverity CID 12893
httpbf.c: Fix resource leak

This fixes Coverity CID 12902
statedb.c: fix potential memory leak on win32

This fixes coverity issue 12898
StateDB: Free locale string also if attribs are invalid.

This fixes Coverity CID 12898