Add auto-generated version info

Initial support for embedding specific version and git revision info into output.

@tasora @rserban : What are your opinions on leaving these as `#define` versus making them a `const int/char[]`? I prefer the latter, but for now used `#define` to be consistent with the existing `CH_VERSION_*`.