[cmyth] Recording rule: Handle manual program, override rule and database constraints

- Backend create 'manual' program related to 'manual search' rule. Column 'manualid' contains the related rule id. These programs should not selected in database queries: get_guide , find_prog etc... So add required filter.
- Delete recording rule didn't cleanup linked rows in tables oldfind and program. This change update prototype of cmyth_mysql_delete_recordingrule(). Now function get rule structure instead rule id.
- Add field 'parentid' in recording rule structure to manage override rules. This field relates the main rule.
- Add cmyth_recordingrule_dup(). New function duplicate rule structure and help to make an override rule or others stuff.
- Update prototype of cmyth_mysql_get_prog_finder_chan(): Add 'attime' to find program related to rule. The new parameter should be fixed with current time to keep old functionality.
[mythtv-cmyth] Recording rule: Handle manual program, override rule and database constraints

Change relates cmyth updates
[mythtv-cmyth] daytime() was not time of the day

Also move inline pragma to standard position
[mythtv-cmyth] Refactoring schedule management