Use new term colour constant paths
Update xml generator!

Only stores the enums in a registry struct for now. The matching is a bit ugly - we need to clean it up.