Port build.sh and installer scripts to Grunt

Continuation of pull #216