fixed storing of coupon groups data, added primarygroup() getter to customers model, refs #61