refactor code: for cleaner logic and position to add feature to support text formatted files

refactor code: added resultmode's to extend QueryScenario so the logic is cleaner, removed AbstractQueryTransaction and movde logic to TransactionTestCase to streamline logic, reorganized Logger for clear use, and positioning so that support for text file format can be added