split server/client side packet handling
Merge remote-tracking branch 'origin/master'