Allow different folder for logfiles

This PR allows one to set a different log folder than DOCUMENT_ROOT/log/log.txt
also logfile names are now .log

with this PR one can take advantage of logrotate and other facilities.

Make sure the WRITE_LOG_PATH is writeable by Webserver User (for apache2 on debian/ubunut  it is www-data)