Simple text protocol based server in ruby