More cleaning and debugging. Still unstable. Added standard CLI classes. Will start replacing all command line based tools with new SkyCLI class