Health savings accounts, which offer tax advantages, can be used to pay for medical expenses now and in retirement.