target-export-device: use getopts

This patch uses getopts for arguments parsing. It also allows the script to print
usage when none argument is given.
target-export-device: add portal selection

This patch allows to use -p option to set a portal. If none is passed, the
default 0.0.0.0:3260 is used.