Centralized the way panels are displayed and how the url hash gets handled.  It turned out to be more complex than I'd like, so there may still be lingering bugs.