Rename www/app directory to www/lib and Update php scripts