Implemented some AgentCluster functions.

Quickly implemented some of the AgentCluster functions, although it was
meant as more of a "rough outline" and definitely does not work as of
now.