patch from oriordan with some addition to support ASN4
Merge pull request #177 from thomas-mangin/confed

experimental confederation support