TODO fix subdirectory index file support fix directory redirect to index file send directory index better way for determining content types caching auth headers