Update lib/connection.js

Removes a collision in the "error" handler and enables reconnection.  Time between reconnection tries is set with "interval" in "options" with the interval set in seconds.