Fix replication with a migration for databases upgraded from v4.

Fix configurations for included_tables and excluded_tables.
Fix triggers on for renamed tables.
Fix rr_pending_changes and rr_sync_states entries for renamed tables.
Fix rr_sync_states entries for removed tables

https://bugzilla.redhat.com/show_bug.cgi?id=1034987
Merge pull request #18 from Fryguy/fix_replication_on_v4_upgrade

Fix replication with a migration for databases upgraded from v4.