Add a BaseCodeGenerator that people can override.

Allows to generate application specific/styled gift codes.