Build: auto-generate header dependencies for C
Refactoring: remove fixed IDs in command enums
Refactoring: move DataType functions to separate file