flagtypes: introduce flagtypes package

I want to use the Addrs type in another experimental proxy that I am
implementing. Pull it out into a separate package.