crit: change magic-gen.py to generate by_val and by_name dicts
pycriu: images: rework everything and leave only json format
crit: use new images module
crit: fix tests