Added DummyXAResourceWrapper for testing, refactored DAO, refactored Entities and Log handlers, does not pass integration tests yet