Minor cosmetic changes.
Create new Reph client with each new connection.

This allows multiple *consecutive* connections to Reph.
Further prettify browser repl.
Start reph in json mode.
Add more sig handlers.
Add support for JSON output from reph.

This makes distinguishing regular result lines from prompt lines much easier.