Added interface ProcessFactory to abstract creation of different kinds
of processes.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>