Add more fields to cmd_context.

BUG-ID:  N/A
Add prepare() to more commands.

BUG-ID:  N/A