libqiprog: Add calls for setting write/erase commands

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>