[fixes#9] Refactored the csproj manipulation. It is now in its own class. Also added code that checks whether the item to add is already in the file, in which case it refrains from adding it again.