Add Rotator interface

Add `Rotator` interface.
`Rotator` interface has a Write method, a WriteString method and a Close method.