fixed: do not wrongly hide some ALSA HDMI devices

Currently the AESinkALSA code takes empty but existing ELD data to
always mean that the HDMI port is unconnected and hides it.

However, many HDA HDMI output devices do not properly pass ELD data,
leaving the reported ELD empty.

Therefore, only hide unconnected ports for HDA Intel and HDA NVidia,
since ELD seems to be reliable with those cards/drivers (i.e. if it
exists, it is populated, and if it is not supported, it does not exist).
fixed: build with libshairport without ao_set_metadata

Fix build with libshairport without the
AudioOutput.ao_set_metadata and AudioOutput.ao_set_metadata_coverart
members (which were added to libshairport git two months ago).

A previous commit 537bec4 had already tried to do this, but it did not
work properly and was therefore reverted in f58b70a.
Merge pull request #1190 from anssih/fix/shairport-metadata-check

fixed: build with libshairport without ao_set_metadata
[AE] fixed: DTS HD core-only passthrough regression

Commit 941eae2dd ("[AE] fixed: passthrough of LE DTS, pre-padded DTS,
invalid DTS") broke DTS-HD core-only passthrough.

Fix it.
Make CAESinkALSA::GetParamFromName return string directly

Suggested by elupus to make the code more clear.
AESinkALSA: Factor guessing AEDeviceType to a separate function
fixed: consider "spdif" ALSA devices as S/PDIF

"spdif" ALSA device is an alias for "iec958", though reportedly it may
be exposed via ALSA hints on some systems.

Consider it as S/PDIF as suggested by elupus.
[WIN32] fixed: enable system screensaver when loosing focus (closes #13180)
Revert "[WIN32] fixed: enable system screensaver when loosing focus (closes #13180)"

This reverts commit a6ca119240326c9a8a27c5f1baf654f475703dd2.

Think before implement!
fix addon settings dialog not resetting correctly on unload
fixed: ineffective ALSA HDMI device whitelist check

The check added in c7015ece88 was ineffective, as noted by FernetMenta
(some " == 0" checks went missing after the previous working version of
the patch).

Fix it.
fixed: add missing dependency generation rules to json-rpc / http-api Makefiles
remove unnecessary includes
Fix reads from Transfer-Encoding: chunked servers.

There's no Content-Length in this mode, so GetLength() returns 0.
Bugfix:  AudioEngine would get stuck in Drain state if memcachebuffer reached 0.  It would cause the video to be stuck at 4-6 FPS and would not fix itself (even if buffer started getting filled) until video was stopped and restarted.
Merge pull request #1201 from classicspam/Branch_AudioEngineBugFix

AudioEngine BugFix
changed: make CApplicationMessenger a singleton instead of a CAppliction member

- more in line with other code
- simpler syntax
- helps minimize the taint of Application.h all over
Merge pull request #1198 from cptspiff/lessdeps

Clean up build dependencies by removing unnecessary includes
Disable the Windows screensaver normally.

This is the ordinary way applications disable screensavers.  This keeps
XBMC from leaving the screensaver disabled when it doesn't have focus,
which is very important on plasma TVs, and this way is also much simpler.
Merge pull request #1183 from zewt/windows-screensaver-on-focus

[WIN32] Fix the Windows screensaver left disabled when XBMC loses focus.