Apple’s iBeacons system will enable purchases, contextual marketing, automated check-ins and much more. And it’s closer than you think.