fix(server.go) fix data race in server.stop
Use setState() function to set state; avoid data race.
fix(peer.go) protect lastActivity with peer lock
fix(server.go) use server.setState everywhere
fix(transporter) set ResponseHeaderTimeout before using it; avoid data race
Merge pull request #205 from xiangli-cmu/fix_data_race

Fix data race