Code to define modeltype RM-2380

create a modeltype table used by models and pfts. The table is
initialized with the types already in the models (not pfts). All models
and pfts are associated with a modeltype next.
User can add/edit modeltypes and see the pfts/models associated with it.
While you're at it, fix this too: "pfts.defintion" should be "pfts.definition".