mkimage.lua: implement all of mkimage procedure.

N/A

mkimage.lua: support make two filesystem "ext" and "yaffs",
it's used to make image of system, data etc.

Signed-off-by: liminghao <liminghao@xiaomi.com>