Move logic from executable into Process

Also: use OptionParser, improve Process specs