THIRD AMENDED AND RESTATED LIMITED LIABILITY COMPANY AGREEMENT OF MIDSTATES PETROLEUM COMPANY LLC (A Delaware Limited Liability Company)