Re-organize the plugin.sh code
Re-organize the plugin.sh code

Use the ACTION and STEP variables instead of $1 and $2.
Move code into functions for better readability.

Change-Id: If096c5536657fbe29e05d2bdb82c3c1347fe9bcc

openstack/dragonflow,openstack/dragonflow,openstack/dragonflow