fix for curl opt definitions in php <5.2.3
removed health-check debug info
health-check hide htaccess check if no apache

cleaned up added some annotations
refactored updateSlugs to use cache information
removing debug code
changed health check to use GSCHMOD for iswrtiable files
caching_function refactor round 1