Merge John's Javascript updates. His message:

Upgraded jasmine
Added JSON2.js to lib
And added crappy test.
This will do for the night as a minimum. Lots more stuff I want to do
with this. Only works with a html5 compliant browser. All dependencies
in lib.