The director of the ‘Nightmare on Elm Street’ and ‘Scream’ series was a master of modern horror.