remove obsolete functions, fix examples

-- Fix examples so they compile with new API
-- Stop building the dead NMXml code
-- Remove some dead interfaces