A Google director resigned over the company's military deals: 'management has lost its moral compass'