Library and tools for accessing and modifying virtual machine disk images