Oil settles up, biggest weekly gains in over a year