Coles and Woolworths are facing court, accused of gaming discount promotions. Here's how this landmark case began.