Updated purchase history template to work with bundles. Not finished. Needs dramatic cleanup / improvement. #594