Also moves the lnd global MaxFundingAmount to server.go
This commit duplicates the utxonursery's writeOutpoint function in the funding package so that when the rest of the fundingmanager code is moved, it can use the WriteOutpoint function for its channel opening state data.