Initial commit for log-rotation & redirection to file:///

Here you launch `p.manageLogRotation` in a go routine then you wait to make sure that p.output isn't os.Stdout but `f`. There should be a better way to do this, something like:
* if stdout is a file, create or open it if it exists
* assign this file as p.output
* schedule an action related to log rotation