Fix ProcessManager, align better with dart:io (dart-lang/io#19) * Fix a bug, add named constructors. * Some refactors. * Dartfmt. * Fix example.