Fix opening certain refs.

Tree refs (e.g. tags or branches) may contain slashes, so better
interpret the whole remainder of the URI as such.
Exclude ourselves when opening patches in the browser.