Added conditional tests and refactored directory handling
Added all cache tests and fixed caching once for all
Fixed CGI directory handling
Fixed error pages
Updated TODO