Updated variant edit code so that "editing" a version automatically creates a new copy. Added ability to delete versions.