Add replication lag monitoring to redistamp.
fflush once per second.
Add notification on master/slave switch.