This describes 'fundchannel' as it works today. It definitely could use better error codes instead of -1 for everything.