Allow differentiated purge days in Recorder integration

It might be interesting to keep a longer history for some selected states but the majority of data can be purged earlier to keep the DB size reasonable. This could be controlled either by specifying specific purge_keep_days in the include list of the configuration or by a purge service accepting entity filters and keep_days.

Duplicate. Please search and vote on existing requests if they exist.