libqiprog: Define a majority of the qiprog API

Define most functions in the QiProg API. This presents a minimal API for
performing chip IO, although it does not yet handle advanced functions
such as write and erase. Those functions remain undefined for the time
being.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
libqiprog: Implement redirection wrappers for defined function

For the QiProg functions which are defined, implement the thin redirection
wrapper (dev->drv->function()).

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