[wip] refactor JSON handling

And rip out --cli.
Actually don't retry query errors.
Improve golang setup, use Go 1.4
kill some defunct code
Improve error reporting parsing indexes.
Tweak result formatting a bit.

Notably, copy-paste should no longer include line numbers.