[cmyth] Update bad error handling

connection.c:

- Check NULL connection before, not after
- Return consistent ERROR values
[cmyth] Update bad error handling

storagegroup.c:

- Return consistent ERROR values.
- Use NULL instead 0 for null pointer (Debug).
[cmyth] No SQL result for DML statement

- Use cmyth_mysql_query() instead cmyth_mysql_query_result() to avoid error message.
[cmyth] Keep LiveTV recording

- cmyth_mysql_keep_livetv_recording(): New function to change recording recgroup of liveTV recording.
- cmyth_proginfo_storagegroup(): Returns the storage group of recording.
- cmyth_proginfo_generate_pixmap(): Call backend command QUERY_GENPIXMAP2
[cmyth] GENERATED_PIXMAP breaks event connection stream

- cmyth_event_get_message() breaks on GENERATED_PIXMAP: Review "leftover data" and add comments.
- Refactor __cmyth_rcv_data(): It will be use to leftover any data.
- __cmyth_rcv_okay(): prefer to use __cmyth_rcv_data() instead cmyth_rcv_string() when  leftover data.
[mythtv-cmyth] To generate preview

- Adding GenerateRecordingPreview()
[mythtv-cmyth] To keep LiveTV recording

- Adding KeepLiveTVRecording()
[mythtv-cmyth] Retreive storage group of recording

- StorageGroup()
[mythtv-cmyth] Resolving confusion between 'Recording Group' and 'Storage Group'

- File should be found in 'Storage Group' instead.
[mythtv-cmyth] Keep LiveTV recording (menu hook action)

- PVR seems to identify recording with tuple(title,recordingTime,...?). Using start time of EPG program make confusion between recordings of the same EPG. Assign RecordingStartTime to recordingTime instead.
- Use StorageGroup() instead RecordingGroup() for fileOps.
- Add new case "Replace recording" in EventUpdateRecording when linking live recording with a rule.
- New menu hook for the channel category: action is "Keep LiveTV recording", ID=3.
- Adding new dialog to select recording from list. Action "Keep LiveTV recording" open the dialog to select the liveTV recording to keep.
Conflicts:
	addons/pvr.mythtv.cmyth/addon/resources/language/English/strings.po
	addons/pvr.mythtv.cmyth/src/client.cpp
	addons/pvr.mythtv.cmyth/src/client.h
	addons/pvr.mythtv.cmyth/src/pvrclient-mythtv.cpp
	addons/pvr.mythtv.cmyth/src/pvrclient-mythtv.h