Some refactoring to establish the proper X.io namespace and use the X.io.factory_ as the loading/parsing manager.

There are 5 compilation warnings which might not be able to get fixed.