renderer: we must give renderer a head start in non fullscreen

If we don't the next frame will be late right of the bat and
we end up dropping it.
renderer: clean up CRetakeLock to avoid deadlocks

If we Leave() and Enter() the order of locks are reversed again.
adds disc number to cue sheets
cleanup CueDocument
Merge pull request #2764 from Tolriq/upnp_checksource

[UPNP/JSONRPC] add source setting allowSharing to secure source access from UPNP/WebServer
Merge pull request #2824 from Montellese/settings_unloading

settings: fix handling of settings unloading
Remove DownloadQueue & DownloadQueueManager
Remove broken usage of CSettingsCategory & CSettings
Merge pull request #2752 from Rawk/fix_broken_gtest

Fix gtests for SystemInfo, Mime, DownloadQueue and Directory
[DVDPlayer/Subs] Save the subtitle number at the end of the OpenSubtitleStream() method.
Regardless of whether the subtitle has been opened successfully or not.
[GuiDialog/PlayerControls] Use CMediaSettings::Get().GetCurrentVideoSettings().m_SubtitleStream instead of g_application.m_pPlayer->GetSubtitle().
The latter one returns the maximal index if the current subtitle could not be opened. This yields wrong info about the subtitle.
[RFC] convert CFavourites into CFavouritesDirectory
[COSMETICS] fix indentation
[droid] - fix libshairplay and activate build for android
Merge pull request #2822 from davilla/die_LINUX-die

Die linux die
fix: CDirectoryCache::FileExists failed for cached directories with no parent
[WIN32] fix compiler error after 7b65508685ef7a6f3c16e9b341b2b71fafaa46b2 (we got time to test it ... :)
Merge pull request #2820 from Fice/dnd_favourites_dir

[RFC] convert CFavourites into CFavouritesDirectory
[RFC] Clarify behavior of GetOffset
Revert changes to CFileOperationJob that were made on false assumptions.

This reverts commit 1542c3328361f949fe3644f6d260316f8d4de189.
This reverts commit 77c15c4dda8490d43648b7e095f9614858fd94aa.