refactored server code to include select and decoupled reading sockets from writing sockets, added http version to request object, changed simple response slightly