move basic rdf tools to -kernel
move generic rdf serialization helpers into -kernel