local storage wrapper with type support
remember panel state (open/closed) with a little help from storage