Serialise all of Manager's models to XML.

Also: Generated bindings now uses std::wstring rather than std::string.
Note: Includes tests (i.e. not tests first in separate commit, sorry).