adding build script

The script runs requirejs build script and generates a compiled javscript with all dependencies, copies the app folder to deploy and update the source javascript file from the compiled javascript.