Fixed method_missing to not try to call if @socket is nil
rstrip instead of strip on input lines
Fleshing out the message parsing and routing..