Code for managing the root entity.

This is a temporary stop gap until we get proper browser history
support.