Save genes in JSON and mat files, and options for JSON export.

Still not passing unit tests with SBML io.