Added mllib KMeans evaluation and other minor changes

We need to probably refactor some of this copy-and-paste, which is why I wanted to avoid copying-and-pasting too much yet. Changing other code means remembering to update this copy for a while. But it's not a big deal