raft: add Configure

Configuration change
@unihorn We need to make this operation safe. I will make this a bug report to fix before 0.5.0.