Fix footnote refs, adjust headings.

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