Adjust saved_position on saving state

* extra debug messages added
Detect and handle logfile rotation

Re-read logfiles periodically in follow mode