[mythtv-cmyth] Start development v1.6.11
[cmyth] Connect Playback or Monitor

- New functions to connect as Monitor or Playback to the backend
[mythtv-cmyth] Connect Playback or Monitor

Add 'playback' flag to the initializer of MythConnection and select annoucement type.
- Recording stream control connection use Playback annoucement to prevent backend shutdown.
- Addon control connection use Monitor annoucement to allow backend shutdown.
[cmyth] Add cmyth_mysql_get_prog_finder_chan

Function allows to find the current program on the given channel.

Thanks to Aubrien for the patch.
[mythtv-cmyth] Set start/end time for instant recordings correctly

Add FindCurrentProgram to find the currently active program on a given
channel. When adding a instant recording, set the correct start/end time
from this program.

Thanks to Aubrien for the patch.
[cmyth] New EPG structures replacing "cmyth_program"

- Memory segments of shared pointers are now handled by librefmem tools.
[mythtv-cmyth] New EPG structures replacing "cmyth_program"

- New class MythEPGInfo as smart pointer for cmyth_epginfo.
- Memory segments of shared pointers are now handled by librefmem tools.
[cmyth] Code and headers cleanup

- Move some function declarations
- Remove deprecated function cmyth_get_delete_list
- Rename cmyth_mysql_get_commbreak_list to cmyth_mysql_query_commbreak_list
[cmyth] Add cmyth_timestamp_utc_from_unixtime
[cmyth] Update cmyth_proginfo_delete_recording

This updates cmyth_proginfo_delete_recording to use the different
versions of DELETE_RECORDING.

 1-55: DELETE RECORDING[]:[]<proginfo>
56-58: DELETE RECORDING chanid recstartts [FORCE/NO_FORCE]
59-  : DELETE RECORDING chanid recstartts [FORCE/NO_FORCE [FORGET/NO_FORGET]]

For newer protocol versions, this allows also to force deletion and
allows to rerecord a recording.
[mythtv-cmyth] Update DeleteRecording and add DeleteAndForgetRecording
[cmyth] Free chanstr in cmyth_channel_destroy

Commit 9d115f3e3181ae73fedf3165fa2576661d875d7b introduced refmem for
chanstr. Therefore it has to be freed now in cmyth_channel_destroy to
prevent leaking memory.
[mythtv-cmyth] Fix missing free in MythChannel::Number

Commit 9d115f3e3181ae73fedf3165fa2576661d875d7b introduced refmem for
chanstr. Therefore it has to be freed now in cmyth_channel_destroy to
prevent leaking memory.
[mythtv-cmyth] Fix memory leak in MythDatabase::GetChannelGroups

The function cmyth_mysql_get_channelids_in_group writes the list of
channel ids for a channel group into an array of unsigned int.
The allocation is done using ref_alloc.
We have to call ref_release also for a channelCount of 0 because
ref_alloc will also allocate memory when called with size parameter of 0.
[cmyth] Free db settings in cmyth_database_destroy
[cmyth] Remove unnecessary calls to mysql_close in cmyth_db_check_connection

The mysql connection is already closed in cmyth_database_close.
[mythtv-cmyth] Prevent MythFile::Length from returning negative number

The function cmyth_file_length returns negative numbers in case of an
error. Since MythFile::Length returns an unsigned value, this might lead into
unexpected behavior.
[mythtv-cmyth] Return proper number of recordings in FillRecordings

The function PVRClientMythTV::FillRecordings has to return the number of
visible recordings. Seems to be caused by forgotten curly braces.
[cmyth] Fix memory leak in cmyth_conn_connect_path

The call to cmyth_file_create has been moved to the end of the function.
It hasn't been removed at its original place leading to a memory leak.
[cmyth] Fix checking for valid connection in connection.c

This fixes a couple of 'Dereference before null check' issues in
connection.c.