namespace declarations in all xml files and code templates, refs #643
merge 9676057fdf3d95a2c9425d2b467b99130a37df28