The business logic of the CI broker.
This is type and module of its own to facilitate automated testing.