Create agency module. Move agent functions from World to agency. Most functionality in place.