State management for the browser.