Bug 1115146 - Purge (delete) data using smaller batches

Introduced JDBCPurgeTemplate and JPAPurgeTemplate
Update purge process for:
* availabilities
* traits