Added database manager to decouple Coordinators from database

allows for better testing
Added event jpa
Mock dbManager now used so tests can run without database connection
Corrected XML methods
Added asDomain method