Malls are dying. The thriving ones are spending millions to reinvent themselves.