scripts: add build_image script that generates a compressed MMC image

The generated image is still untested and will likely fail to boot at
this time.