Updated merge_packages to merge input namespace/schemalocations dictionaries. Also, made it return a merged_package entity rather than output to XML