It wasn't that long ago that building loyalty for the typical bricks-and-mortar retailer was fairly straightforward. Businesses could rely on in-store relationships and customer service to keep shoppers coming back. But the new reality of web 2.0, social media and mobile apps means it's tougher than ever to stand out,…