Added support for reading commands from a file.

Cleaned up lint errors in cli.py
Started to add test infrastructure.