There are hopes techniques borrowed from the oil and gas industry can boost the viability of geothermal energy, as a German town gears up to be a test case.