Stop checking if ri->address is an IP

since router_parse_entry_from_string() already checks whether
!tor_inet_aton(router->address, &in)

(And no need to print address, since router_describe does that.)
stop passing "address" around the directory_initiate_command* funcs

since it was always just the string version of "addr" anyway
use router->addr for log messages and controller events

(rather than router->address)
use me->addr when adding our address to our exit policy

(rather than me->address)
stop setting, or using, router->address

resolves ticket 5528.
A Bridge Authority should compute flag thresholds

As a bridge authority, before we create our networkstatus document, we
should compute the thresholds needed for the various status flags
assigned to each bridge based on the status of all other bridges. We
then add these thresholds to the networkstatus document for easy access.
Fixes for #1117 and #9859.
Have the OOM handler also count the age the data in a stream buffer
Merge remote-tracking branch 'sysrqb/bug9859_5'
Whitespace cleanup
Count freed buffer bytes from buffers when oom-killing circuits.

Also, aggressively clear the buffers to try to make their bytes go
away fast rather than waiting for the close-marked-connection code
to get 'em.
doxygen comments for 10169 code
Changess file for #10169
Rename MaxMemInCellQueues to MaxMemInQueues
Drop the MaxMemInQueues lower limit down to 256 MB.

on #9686, gmorehose reports that the 500 MB lower limit is too high
for raspberry pi users.
Handle unlikely negative time in tor_log_err_sigsafe

Coverity wants this; CID 1130990.
Remove needless fd var from test. CID 1130989.
Fix a bunch of coverity-spotted unit test resource leaks

CIDs: 1130994, 1130993, 1130992, 1130991
Fix another unit test memory leak. CID1087949,CID1087950.
Add checks to prevent memcmp(.,.,negative) in tests (CID 1064417)
Only update view of micrdescriptor pos if pos is fetchable.

It's conceivable (but probably impossible given our code) that lseek
could return -1 on an error; when that happens, we don't want off to
become -1.

Fixes CID 1035124.