Improve way to show directory-like path in window title
Examples:
* resource://gre/modules/addons/ -> modules/addons/ (instead of full URI)
* https://github.com/user/repo/issues/19 -> user/repo/issues/19 (instead of just "19")