After decades of dominance, network television is losing huge chunks of its viewership to cable TV and the Internet. What are the networks doing to lure back viewers?