Bug 840512: generalize toolchain.m4 to match newer Apple clang version string.
Checkpoint progress on port to js shell.

(Most of it was spent making a nicer interface for 2D arrays backed by
a 1D array, which I might have to rip out anyway.)
Checkpoint state at end of day.