Fix replication lag written many times and tests accordingly
Fixing test (for true) and then some refactor
Fixed comments
Merge pull request #298 from wajam/manu-lag-write-spacing

Fixes lag written everytime it changes, with no rate limiting