Applies XML Injection hardening to the application
Thanks to Ben Webb for the heads up.

Implements the recommendations found here:
http://phpsecurity.readthedocs.org/en/latest/Injection-Attacks.html
wherever simplexml loads xml to memory.