Add hash only support for URIs and keep compat with hash + slash.

Closes gh-13. Closes gh-7.