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

Closes 13. Closes gh-7.