A Westbury home repair company that offered geothermal heating and cooling equipment has lost its licenses to operate in Nassau and Suffolk counties and has filed for bankruptcy court protection amid dozens of consumer complaints of shoddy or incomplete work.