Add support for slaveHosts set in TaskQuery.

Bugs closed: AURORA-232

Reviewed at https://reviews.apache.org/r/18526/