How long can a wire go?
Not from what I experienced. I had the exact idea that you had, built it with friends and it worked perfectly. Just make sure not to leave any gaps (stupid advice but it's hard to keep track of the wire sometimes)
EDIT: And according to the wiki, they removed the wire limit in patch 1.2.3 http://terraria.gamepedia.com/Wire