Refactoring of komodo-shell packages.

Created shell command test framework and tests.