Refactored browser module.

Browser now uses prototypal structure.  Implemented failover
and internal emulation of a redis-like pubsub client.

Some package cleanup and some bug fixes.