Cleanup whitespace
Support decoding rotate event
Add test for rotate event
Better connection and log rotate management
Set __connected_ctl = True after connecting