As California's population ages, the state grapples with the far-reaching implications for its economy and society.