Removed callbacks from constructor arguments for server and connection, fixed a bug registering a read callback and fixed the output wrapper in case it is registered before the connection was established