Rewrite

- JSON Client passes tests, but surely has whatever previous bugs or quirks
- json.html in prototype server runs the code currently at https://github.com/share/ShareJS/wiki/JSON-Client-API