Implement resize and parent updating

This allows us to replace some uses of libvhd (which is hard to build because of the Xen C header)