What's needed, now that we're doing all of our coding off the server, is a CSOM/JSOM way to get distinct values, through support in the RESTful/OData interface or through CAML.