Add simple logging to PHP's stderr
Fix permissions for AJAX access