Hive as an actor

Some changes to turn the hive itself into a (special-case) actor.  With tests!