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

---

@jrafanie Please review.  This has been moved from the old repo with the logging fixes.  Note that some of the specs fail, but I think it's the part where it shells out, so I think my PG configuration is wrong.  @kbrock, help?
What was the issue here?  The trigger was associated with the old table name and couldn't be found when using the new table name?