Update view.php to make possible send HTTP headers

Added function `addheader($header)` to add headers in `view::headers` array and makes possible send header before template render via `rendertemplate()` or `render()` functions. Sorry for bad English.