Add get/set functions on urlState

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