NEM Foundation, on Brink of Bankruptcy, Plans Layoffs and Pivot