Cleaned the cli and added documentation

Cleaned the CLI and added documentation. Moved the connection classes and methods from tomato.py to the library.

I missed those in my recent cleanup.