add score caching back into the moses code

Score caching was removed during the scoring redesign.