xml.c: Update deprecated libxml2 API usage.
Two functions are deprecated as of libxml2 2.12:
  * xmlSubstituteEntitiesDefault
  * xmlParseMemory
So we update those with supported API.
Additionally, `res_calendar_caldav` has been updated to use libxml2's
xmlreader API instead of the SAX2 API which has always felt a little
hacky (see deleted comment block in `res_calendar_caldav.c`).
The xmlreader API has been around since libxml2 2.5.0 which was
released in 2003.
Fixes #725
(cherry picked from commit 
ed12e22ad9d3e8922e22b8f408d9af5ce88fa05b)