Build script is now almost entirely generic.
Added version.xml.