move nodeid and qname parsing to their original struc, prepare to move stream to their own file, fix test compile on ubuntu 14.04