Implement DataQuery endpoints

This should resolve #42.