Import dialog refactoring + support for all targets in a folder

Refresh targets if BUILD file is changed

Testing Done:
locally

Reviewed at https://rbcommons.com/s/twitter/r/962/