json_add_tx: separate JSON printing of a TX into its own file.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
gettransaction: new JSON command.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
getinfo, dev-listtodo: beef up output.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Fix case where we get stuck in sync.

Chasing bug #22, but this just reveals more problems.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
protocol: fix horizon time.

It was out by a factor of 10; I wondered why it was 120 hours on
the test network.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>