add QueryCache support for Store->sparql; refactor a bunch of tests

and add a couple of tests...