fix to run with built-in web server.

 * Update dev.php.
 * Add log folder