Lm caching 1

Merging changes for caching the language models for future use and actionlib recording support.