[Reviewer: Mike] IPv6 fixes

Mike,

Please can you review my fixes to
- handle IPv6 (by calculating and storing off the default address type for resolution and also by propagating IPv6 addresses correctly)
- send responses when transport fails (which fixes #394)?

I've live-tested this and rerun UT, but I still need to check code-coverage - please don't merge yet.

Thanks,

Matt