core: RunVmCommand.canDoAction clean-up (9)

extract vmDuringInitialization and add tests

Change-Id: I2b595b419ac6f4c6b42eecef9f8f8f62b11d0eaf
Signed-off-by: Gilad Chaplik <gchaplik@redhat.com>