Added Emscripten build script for a2test

Added a simple shell script that builds a2test for asm.js
using the Emscripten SDK, along with a few minor tweaks to
build and run properly in that environment.