WIP on generating packs

Interface for generating packs.
Temporary template of header

Added a hand-written template of a header to be generated, to guide
generator development. It will eventually be removed from the repo.