LogRotator is now pluggable.

This is done by introducing a new base type 'BuildDiscarder' that's
extensible. Plugins can implement their own logics.