Add promise support to QueryResult.
Use promises to create dashboard filters.