Code in '__init__.py' moved to cmd module.

- Code in '__init__.py' moved to ‘cmd’ module.
- Signal class moved to ‘common’ module.
- OutputProgress class moved to ‘common’ module.