Refactored to use native classes from httpobjects to deal with index.html and static content