Better index file handling. Fixes #5.

All requests for a directory now trigger the index file search. If no
index file is found, the server sends a 404. Ideally the server would
list the directory's contents, but that's not implemented yet.