Add support for server-side subsetting.

Instead of pulling down the full data, translate Numpy-style indexing
into the appropriate commands in the server API. Also add tests.