Moved common json test support code into its own file.
Extended base class with export method, i.e. serialization capability. Format support is dynamic via "package require".