Return json/xml/rdf output for nodes

Relate to issue #975