Add a new `clock` service to the Flamenco struct, which allows us to mock the passing of time, and thus test for timestamps in a stable fashion.
This will be used for keeping track of stuck tasks.
The number of interfaces declared by the `api_impl` package is getting large, so they deserve their own file. No functional changes.