basic object metadata access; caching improvements

Also some PGrange stuff that's not ready and messy, so not using it yet