Add get/set functions to urlState

This adds the ability to stick arbitrary pieces of state information in
the URL.