Started working on support for legacy extensions (incomplete)
Parsing of capability extensions. Add extensions to capability data emitted in event.
Merge legacy extensions branch