Removed unused tabledef argument from TargetQuery constructor

Moved central code of TargetSQL.ExecuteTargetRequest to RepCache to to use it outside the worker execution chain
Continue to refactor table creation/prep for persist
made some code prettier to look at.
Moved the SQL signature generation method to RepCache to use outside worker chain