add phrase table caching
move caching code to PhraseDictionary. Available to all phrase tables
minor renaming