Added QueryEnginer writing integration test

Also wired up use case handlers in Writer facade

Change-Id: I8948c79ae1414a61f6812ca853c654804a9b64a6
Merge "Added QueryEnginer writing integration test"