Convert browse API to be fully URI based.

Last thing I want to change for this is that I now makes sense for local to store the pre-built cache on disk instead. Can split it into another PR I guess, but would like to squeeze that last quick change in :-)