Convert registry.go to use a for-select loop instead of locks.
Move all registry state variables to loop() local vars.
Merge pull request #138 from soundcloud/expand-agent-select-loop

Convert registry.go to use a for-select loop instead of locks.