I implemented a version in go as a vehicle to learn the language. I then realized that I liked the approach and implemented version in JavaScript and PHP. Hopefully it will prove useful for others. It is licensed under the New BSD License (see http://www.opensource.org/licenses/bsd-license.php)

The JavaScript version is intended to run in both the browser and in NodeJS. The test suite is implemented in NodeJS.