Removed query interface.
Made Session loggerAware.
Removed query interface from the code.
Added query Listener interface.
Added query listener test.