Added editorOnly json-schema option and updated schema#toJSON method to
handle export