The layoffs follow the resignation of CEO Emad Mostaque and are part of a strategic plan to stabilize the company's finances.