Module classes

Modules aren’t just random floating objects anymore, now they are
instances of simple classes that allow for more syntax flexibility and
standardize some of their properties. Also switched modules to use mode
instead of dynamic/individualized properties. Got rid of color units
because really what is the point of that?