Support index.html lookup

Move stat to respondWithFile to avoid duplicate stat and allow easy checking for index.html in a directory.