Add shared xmlhelpers.
Use latest sphere-node dependencies.
Refactor to use class.