Add file rotation

Add file rotation, inspired by [lagar](https://github.com/basho/lager)