Implemented first version of a chat program. It wil now connect to itself and you can send messages using stdin to stdout.