Add Python API for updateinfo.xml

Unfortunately, I have done lot of changes to header files since the last time you saw my original proposal. But I believe that none of these changes are important. The only significant thing is that I have moved UpdateRef to its own files.