add getInfo method

So, when you call bind with port zero the system will choose a free port for you. Turns out that's pretty handy for some stuff I'm working on. This surfaces the getInfo call, with which you can query the bound port (and address).

Open to suggestions on whether it's better to have separate getPort() and getAddress() calls vs. this catch-all getInfo().