AMENDED AND RESTATED MASTER LOAN AGREEMENT by and among HOMELAND ENERGY SOLUTIONS, LLC and HOME FEDERAL SAVINGS BANK dated as of June 29, 2017