Implemented a preliminary expat-based XMLStreamParser.  This fixes a number of bugs on OS X, which ships with an old and buggy version of libxml2.