Server assigns IO block ids to workers.

The current form is ugly and not scalable, but we're trying to get the data
flow worked out. We'll add tests (first) and refactor later.