Updated UnitTests to work with Doctrine

Updated init_mini.php to get mainfile.php dynamically. 
Updated phpunit.xml and xoops_lib.xml to disable global serialization.
Updated class/database/DatabaseFactoryTest.php to test doctrine properly and added a couple assertions. getDatabase is going away so that test was commented out.