Throw an Exception when the header is already been sent

Please see the details of the discussion at  issue #3990
I think the message should be localizable, and the trailing newline doesn't seem to serve any purpose?

`__d('cake_dev', 'Headers already sent in %s on line %d', $filename, $linenum)`