demmt: move region handling code to a separate file
demmt: validate all regions

... and hide its code in demmt_region.c
demmt: move to its own directory