extract some non-generic things out of Server.js
remove unused parameter to Packet#copy