18896 doc membership

Add doc shard info and move the handler functions out of _membership/* into a _shards db handler.