> For instance, the resources it takes to construct a pipeline/power line to the nearest town might be more than the electricity/methane that can be generated from the well.
Well, there already is a pipeline for the oil product (so the additional overhead for a small gas pipe isn't that huge) and an electric grid hookup for the pump. That can be used even for a small-scale electrical generator.
>Well, there already is a pipeline for the oil product
not every oil well is hooked up to a pipeline. Some (many? most? not sure) are only serviced by trucks, presumably because they're too remote to profitably operate a pipeline for.