Medicare and Social Security represent successes in facing the realities of aging, but their imperfections also show how much more could be done.