localdisk: move migration stuff to its own file

Change-Id: I987e0133622658dcf3117d65119723f12a4fe74f
localdisk: cleanup temp files in migration, clean dirs better

Change-Id: I8999fafc3e87822ec87df227e7815e7cdaf397cb