Factored out the common endpoint/metavoxel client code from the metavoxel client, server, and tests.