Bug 1115146 - Purge (delete) data using smaller batches

Introduced JDBCPurgeTemplate

Update purge process for:
* availabilities
* traits
* events