A bit of socket code, removing the NetworkEndpoint classes for now, fixed bucket lookup when adding new nodes