engine : Persist commands with callbacks automatically

Persist commands with callbacks automatically when
the command is executed

Change-Id: Ic4f56ec11d295baae513e7552f93a5bf9b81d384
Bug-Url: https://bugzilla.redhat.com/1133041
Signed-off-by: Ravi Nori <rnori@redhat.com>