MOSES: polishing the boosting code

These changes cleanup and deploy boosting in a general moses setting. All unit tests pass, and manual testing of boosting indicates that it more or less works.