Make 'url=' parsing more resilient.

Make parsing of url= lines in properties files more resilient in face
of syntax errors. Avoid PHP errors in logs.
 CS version number now a defined string. {version}

 CS version number now a defined string.
Use ltrim() to remove leading underscores on URL.

Use ltrim() to remove leading underscores on URL.
Use shell_exec() and sys utility to gzip the log

Use shell_exec() to run gzip util to compress log rather than reading
the log and then writing with gzwrite(). We already require
shell_exec() anyway, so why not use gzip utility here?