Ripped out old networking code to prepare for rewrite.