[sam-unpack-lib] MBN support finished

Non-tested
[mbn-tool] Migrated to sam-unpack-lib
minor changes