Paramount, the media empire behind CBS and ‘Top Gun,’ agrees to merge with Skydance