Najmul Hossain Shanto's century and Mustafizur Rahman's five-wicket haul powered Bangladesh to a 2-1 ODI series win against New Zealand in Chattogram.