Convert frames to use JSON instead of Pickles

Pickles might be used for code injection, and this
doesn't need anything more powerful than JSON