copy files to www on build and add modrewrite for html5 mode local serving