new HttpServerStream and restserver example program

- Setting default headers for httpstream and httpserverstream
- implemented the response() method
- new HostnameEncoder