Added a JDBC repository type and reworked the base subsystem to better fit it.
Update batch subsystem tests and fix various issues found.
Merge pull request #5481 from jamezp/batch-updates

Add JDBC support to the batch subsystem