Add histogram support.

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