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?
Are ALL entries in RrPendingChange for the "old_name" table applicable to the "new_name" table?