AGREEMENT AND PLAN OF MERGER BY AND BETWEEN MID PENN BANCORP, INC. AND FIRST PRIORITY FINANCIAL CORP. dated as of January 16, 2018