dvr: ensure scheduled recordings are linked to autorec rule.
Issue #1454 - Remove usage of non re-entrant strtok()

Thanks to Jaroslav Kysela <perex@perex.cz> for providing the initial fix.
Issue #1453 - Fix autorec init issue (duplicate entries)

With previous init change, the scheduled events may be duplicated. Split
the dvr_autorec_init() to two phases:

1) load the autorec list
2) update the scheduled events after dvr db is initialized
Issue #1454 - init strtok_r() state ptrs, older gcc whinges.
Issue #1454 - correct stupid typo when changing code layout in filebundle.
Issue #1458 - fix unint variable.
Issue #1403 - ensure adapter config is properly loaded.
Add new capabilities field to determine what optional features are included.
webui: add some processing of capabilities for dynamic tab inclusion.
Issue #1446 - fix --disable-cwc checks.
Issue #1446 - fix --disable-linuxdvb.
Fix #1427 - webui: Added reverse proxy support.

This includes a next webroot command line argument (using -W) and
some minor mods to the core HTTP/WebUI code to support this. Most
of the mods are pretty trivial and hopefully nothing will break
too badly.
fixed - don't mark unscrambled streams with TSS_NO_DESCRAMBLER
webui: add initial support for nStreamPlayer on Samsung SmartTv's
Issue #1459 - fix removal of all autorec recordings on startup

There were 2 issues here:
- recent changes meant that recordings were purged on every startup
- long standing issue meant complete recordings were removed on
  removal of an autorec rule (which I don't think was intended).
add greek language to language codes list
filebundle: always open files as binary

If files have wrong file endings the stated lenghts
won't match total data read from file.
filebundle: fb_read must return real len in FB_DIRECT mode
tcp: socket writes get interrupted so must be retried
fixed content type translation