tests for `cache ls --depth=x`

Also fix test paths to work with `tap test/*.js` and do some mild
renaming of stuff in `cache.ls` itself.
split ls out into its own file
document ls