created logger
updated router logic

- 404 if the directory does not exist
- 404 if the directory exists but index.html does not
- if index.html is requested directly redirect to the directory
- all non index.html files have no special treatment