set content type for index.html to html
fixed implimentation of header content for index.html
detecting internal vs external hyperlinks