Split definitions/prototypes into a header. Added basic packet structs.