Overhaul of corobot_manager.

Made it into a class to get rid of sketchy globals, and restructed a lot
of the other code.

CC @kberger