Add helper to generate header template for product type.
Support to define query for exporting products. Refs #4.