Breaking up the monolithic parrot file into a module.
Make the internal socket parameters kwargs so that we can add familty/type/protocol parameters to Socket constructor.
Workaround for select not working with UDP sockets.