Added an abstract command line service factory.

Use this factory to create services and easily add subscribers based on options.