Refactored Node class in libprocess.

Moved class Node out of process.cpp and into its own header as a part
of refactoring process.cpp.

Review: https://reviews.apache.org/r/25847