Update stats code to use latest dm API

sample_ids -> ids
num_samples -> shape[0]
Merge pull request #1414 from jrrideout/bipy-dm-updates

Update qiime.stats code to use latest DistanceMatrix API