Adds a controller for batches. Addes some tests for this controller that do not yet pass.