Pass a function to define regions with RegionManager#addRegions

Implements #1371.
We generally write chained methods like this:

```js
expect(this.regionDefinition)
  .to.have.been.calledOnce
  .and.calledWith(this.regionDefinition);
```