frontend: set query's refresh property using fluent api

In addition, the patch contains minor refactoring in AsyncDataProvider.

Change-Id: Id8dcd88a788cf06ae959b6e24ff34c0096392d6e
Signed-off-by: Arik Hadas <ahadas@redhat.com>