Various clean-up of example and spec files.
Add json2 to example app for old browsers.