There were a bunch of places that assigned b.prefs, and a lot of
copy/paste reactive work that wanted to run in response to b.prefs
changing. Move it all to a new method.
Change-Id: I4b0fa167c762dc3cedc818a4801c1ac1141b1825
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>