Show client status on our basic presentation page.
Add a new force_sort_criteria option, to globally override the SortCriteria value sent by the client.
Including <linux/netlink> requires <sys/socket.h> on some systems.
Fix a couple file descriptor leaks.
Fix possible memory leak in error conditions when saving resized album art.
Fix memory leak in AAC tag parsing.
Add configuration include file support.
Mark X_MS_MediaReceiverRegistrar variables that are supposed to be evented as such.
Support @parentID in SearchCriteria.
build: fix out of src tree builds

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
upnpsoap: fix some clients playing artwork instead of movie

While playback on an Samsung E Series TV is ok, other clients such as VLC
and vplayer (android) attempt to play the artwork rather than the movie.

The issue was traced to minidlna serving the artwork res before the movie res.
Other dlna server's were observed and found to the send the movie first then
the artwork.

Swapping the order seems to keep all tested clients happy.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
uuid: use CLOCK_REALTIME if CLOCK_MONOTONIC not available

Older versions of glibc may not have CLOCK_MONOTONIC, this is certainly the
case for the 2.3.2 based terastation libc.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
clients: merge samsung Series C client id

A Samsung TV cannot be reliably detected by checking for "SEC_HHP_TV"
User Agent. Only the first part can be guaranteed, eg. "SEC_HHP_" as the rest
can be changed by the end user.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
upnpsoap: fix samsung bookmarks

This makes the bookmark functionality work as expected on Samsung E series.
Adapted from http://sourceforge.net/p/minidlna/discussion/879956/thread/1a711ef6/ and
http://sourceforge.net/p/minidlna/bugs/197/.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
utils: add unescape_tag function

This is added to remove any escape chars from a string.
This will be used in a pending patch, that correctly reads .nfo files that
contain escape chars.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
metadata: handle escaped .nfo files

Some nfo files may contain xml escape chars, as generated by MediaElch.
This will remove any escape chars found so that they can be correctly
handled by minidlna.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
upnpsoap: fix incorrectly formed Samsung GetFeatureList reply

Bug raised here https://sourceforge.net/p/minidlna/bugs/210/, and also
mentioned in http://sourceforge.net/p/minidlna/discussion/879956/thread/34276163/.
However patch given needs to correctly escaped to work otherwise the
renderer will get stuck in an endless loop.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Fix conflicting definition for unescape_tag().
Add fake X_MS_MediaReceiverRegistrar RegisterDevice support.
scanner: Add an extra level if there are multiple media locations.

Before, the top level of folder browsing could be messy if you were
using multiple media directories.  This should tidyt things up.