Add option for automatic cleanup of old entries

Automatic cleanup requires LazyCron module and is carried out every day,
but only if user has decided to turn it on (by default it's turned off.)