Made use of saving/loading of grammar

The media plugin now only rebuilds the playby grammar if no previously
saved grammar is found, and automatically saves it after generation for
use the next time.