[tor-commits] [tor/master] Refactor node lookup APIs to take flags