New command line runner which can return the standard out, err and return code when using the scheduler. General clean ups.