Tests for updating interface link state.

Update link state by update-device command.
Check link state in guest.
Improve the code.
Merge pull request #364 from rbian/domif_setlink_getlink

Tests for updating interface link state.