Working on query execution logic

Adds attribute query worker class to encapsulate the query execution lifecycle
Replaces servlet style filter API with simpler gate API