Record right action name while migrate

Actions are recorded in database while users take atcions in specific
instance. These actions can be listed by comand 'nova instance-action-list'.
Resize and migrate use same code path, but always record the action as
'resize' even user migrate instance. This commit check the action
firstly then record right action.

Change-Id: I3462275fa3022173d55dfa0c87328d4bb518239b
Closes-Bug: #1323173
Merge "Record right action name while migrate"