Add AsTag
Add AsImage
Add AsScreenshot
Add AsApp
Add AsNode
Add functions to parse from and to insert a GNode

This allows us to trivially serialize objects to XML and back.
NOTE: as this uses a DOM parser, it's certainly not quick. Use something manual
like expat or GMarkupParser to do this more efficiently and with less memory.