Move cmdline to command

Signed-off-by: Hao Liu <hliu@redhat.com>
Avoid exclusive options

Signed-off-by: Hao Liu <hliu@redhat.com>
Remove unnessesary random_lib module

Signed-off-by: Hao Liu <hliu@redhat.com>
Clean up code

Signed-off-by: Hao Liu <hliu@redhat.com>
Add pre and post action for every command run

Signed-off-by: Hao Liu <hliu@redhat.com>