mocking support

`NewMock(dir string)` spins up a mock API server serving data out of the directory passed in
test: use mocks