Refactor BigQuery code

Test Plan:
WIP
Refactor; simple query test

Test Plan:
WIP
Rewrite using async query

Test Plan:
WIP
Cleanup; fix async polling

Test Plan:
WIP