Rake task to trim old sessions

Hello,

This PR adds a rake task to delete old sessions from the table, without clearing the entire table.

Many thanks,
Oli