Added "error" event to Server and Connection, updated debug messaging
Use http.request instead http.createClient