Real-time advertising technology built around licensed media second-screen recognition