Revamp build script.

It is now possible to test and benchmark single files.
Usage: 'npm run benchmark' to benchmark all files.
'sh build/build.sh --benchmark foo' to benchmark 'foo' only.