Add experimental support for approximate queries

Note, most of these are from my sample weight PR. The one that needs review is "Experimental support for approximate queries"