CA-93559: Change code ordering within force_state_reset.

A VM's power_state and allowed_operations are now updated after its
devices are updated. This makes more sense for clients which are
watching for VM.power_state to become halted.

Signed-off-by: John Else <john.else@citrix.com>
Logging fix.

When we're updating the database value of VBD.currently_attached in
response to a xenopsd event, make sure we log the value we're putting
into the database.

Signed-off-by: John Else <john.else@citrix.com>
Remove an unused function.

This function wasn't being used as far back as George, so I think it's
safe to get rid of it.

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #975 from jeromemaloberti/CA-93559-tampa-lcm

CA-93559/XOP-227: Change code ordering within force_state_reset