refined connect/disconnect logic; added maxReconnectAttempts option to broker; also exposed other reconnection backoff-related options: maxDelayMs, initialDelayMs, multiplyFactor.  use a function statement for Broker for better stack traces. bongo forwards connect/disconnect events, disconnect works, onconnect and ondisconnect callbacks.
refined connect/disconnect logic; added maxReconnectAttempts option to broker; also exposed other reconnection backoff-related options: maxDelayMs, initialDelayMs, multiplyFactor.  use a function statement for Broker for better stack traces. bongo forwards connect/disconnect events, disconnect works, onconnect and ondisconnect callbacks.

gokhanturunc/kd,anonrig/kd,anonrig/kd,gokhanturunc/kd,koding/kd