Added sub product ids to orders
Updated count to be more efficient
Added attributes and options to line items
Discount updates

- Added discount amount to the item
- Added discount rule name
DRYed up attribute, options and discount code
Added product sub ids to products
Added customer group or orders and carts
Added customer group to customers