Companies are noticing that every time they do a layoff, their stock skyrockets. Decreasing expenses is the icing on the cake.