Restructured CommandLine to use a proper implementation of command line
batch processes instead of the hacky workaround currently used. Moved
some classes around into better named packages.