changed the tvh_write() wrapper take const pointer as agument
make use of tvh_write wrapper in passthrough muxer
Added encryption column to configuration->TV Adapters->Services. Added additional caidnametab entry.
Fix memory leak on add channel
Reduce code duplication
Remove autodestructor
formatting: fix some indentation and remove deprecated function.
Replace all use of write() with tvh_write().

tvh_write() will deal with incomplete/interrupted writes and will ensure
the write operation is completed unless a fatal error occurs.
Merge remote-tracking branch 'origin/pr/199'
Merge remote-tracking branch 'origin/pr/200'
Merge remote-tracking branch 'origin/pr/201'
webui: simplification of the tvheadend_webroot processing.
[PR-174] - Icon caching support to reduce overhead on upstream providers.
[PR-174] - Replaced user submitted icon cache with more generic image cache.

This allows file:// paths to be specified for channel icons even if image
cache support is disabled.

The image cache functionality is compile time optional (for those without
curl support) and also run-time configurable for those that don't want it.

All images, including EPG ones should be cached.
Add support for the DVB terrestrial delivery descriptor (i.e. auto-detection of DVB-T muxes).  Note that DVB-T2 is a different descriptor and not included in this commit.
Fix javascript error (typo) spotted by andyb2000
imagecache: fix mistake in imagecache address checking.

This will still may not work if the server is behind a proxy, as this
could lead to the wrong IP being detected.

For clients with HTSPv7 support they will only get the /imagecache/ID
part of the URL and will have to add the rest.

Note: there will be a number of clients that may report v7 support
but not be fully compliant due to the release schedules etc... users
in this position will not be able to use the image caching.
htsp: make DVR file open compatible with webui URLs.
imagecache: fix re-fetch period mistake.
htsp: bump version to 8

New imagecache URLs will break XBMCs pvr.hts which already reports v7.