First cut of a gateway.

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