Initial drop

Contains term class, subunit struct, and (most of) their children now.