Add JSON API
Add rudimentary JS client, fix data parse
Tweaked interface and client