Bruins come to terms with Wheeler