Ensure cookie and cache files are secure (not group or world readable).
Fixes #29