JCPenney weathered a bankruptcy, store closings and a Silicon Valley CEO — all followed by revenue declines. Now, the 123-year-old company is getting another shot at rebirth.