A trustee is entitled to the repayment, out of the trust property, of all expenses actually and properly incurred by him in the performance of his trust. He is entitled to the repayment of even unlawful expenditures, made in good faith, if they were productive of actual benefit to the estate.