remove hacks and most non-public functions

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
remove unnecessary 'self'es

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
every time I receive data, I just save it into a buffer

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
listener for the "100 VTR Ready" string

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
if the Ready string is not the first thing we got, log a warning, and drop
the offending text

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
response parsing function

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
once I'm connected, try to parse the response every time I got some data

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
try to process the responses in case I got some already

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
bind 'close' event handler

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
bugfix finding the first \r\n

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
don't process if there's no pending commands

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
reject receives an error

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
make sure we cycle commands and response if there's an error

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
don't use replace, it's dangerous

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
send the damned command =)

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
bugfix

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
fix log message

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
better logging

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
I need to keep old interface

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
keep a list of errors

Signed-off-by: Tomas Neme <lacrymology@gmail.com>