[www] Refactor fileUtils to match deploy format.
[#213] Fix async issues with fileUtils.

- Added WP support by solving the race condition.