Refactored libprocess class ProcessReference into its own header.

Move class ProcessReference out of process.cpp and into its own header.
Part of refactoring process.cpp.

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