Creation of new community types is now supported. Communities can also be created based on any type.
dotlrn_community::new_type proc now creates a portal for the new type. Creating a new community uses this portal as template. Applets created now default to dotlrn_community applets from dotlrn_class_instance applets.
Also added dotlrn_community::type_exists and dotlrn_community::set_community_type.