TRANSACTION AGREEMENT by and between FIVE STAR SENIOR LIVING INC. and SENIOR HOUSING PROPERTIES TRUST NOVEMBER 8, 2017