Incapsulate raw raft node
This patch eliminates raw raft node dereferencing and redundant use of
borrow_mut()
. Instead, traft::Node
provides a safe API that
communicates with the raw node through the fiber channel.
Also, functions node::new
and node::start
are merged because keeping
them distinct makes no sense.
Edited by Alexey Protsenko