Added phpunit.xml file for all projects in the repo

Also made all tests for code that is not dependent on MW runnable
without MW being loaded.

Change-Id: I38301d4315fca0d52095bd6cda23dc64458d7f09