rake tasks for cleanup

Rake tasks clean up expired tokens and sessions (#4568)

These will be triggered regularly by cron.