Amazon is laying off 18,000 workers and other tech companies are following suit. This is what this move says about the state of the economy.