libanyio: change lib api to more universal

Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
hm2: fix generating pin files from board configurations with pins without secondary tag

Signed-off-by: Michael Geszkiewicz <micges@wp.pl>
build: rebuild mesaflash binary along with libanyio.a

Signed-off-by: Michael Geszkiewicz <micges@wp.pl>