Grow plants > feed to goats > collect menure > anerobic decay (aka methane digester) > natural gas (pretty close anyway) + good fertilizer.
That's the system I'm interested in. The only real issue is needing to filter out a sulfer based gas (forgetting the exact thing off the top of my head, but it's corrosive to metal)