Whatever happens with the economy, companies are preparing for the worst, including laying the groundwork or pulling the trigger on widespread layoffs. And that means lots of new challenges for legal chiefs.