Do not add duplicates, and delete duplicates
fixed path issues, fixed issue with relocation and adding new ports and hosts
Merge pull request #1540 from AppScale/delete-dups

Do not add duplicates, and delete duplicates