Added P/R and XValidation

Added Hao's machinery plus more to (1) do cross-validation, (2) train
on one XML file and test on another, (3) compute P/R, and F1. This
won't match exactly the score they compute, but it's good enough to
help pick features and classifiers.