Updating for new programmatic swarm interface.

Depends on https://github.com/numenta/nupic/pull/764.