Minor performance improvements identified as part of an internal review

1) Moved some variables in the log function so that they are created
only when they will be used.  Also inlined them to reduce memory usage.
2) converted some mixed tabs and space to just spaces
3) changed line 164 to remove the  null part because it is redundant
with the default check.  Without the not null part it will return true
only if connType is not a blank string, not null, not undefined, not
false, and not 0.  This works across all browsers.