Simplified null check conditionals.

Transformed all conditionals like:
(varName && varName != null)
to:
(varName)
Refactored Connection.prototype.setEndpoint to be more literate.
Refactored repetitive ternary expressions to or expressions.

Transformed all conditionals like:
(varName ? varName : defaultValue)
to:
(varName || defaultValue)
Switched "+" to first line from following line.

Avoids a possible parser error to have operator at the end of line as
opposed to continuing on the beginning of the next.