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.
Merge pull request #164 from eperret/master

Minor performance improvements identified as part of an internal review
Mobile SDK Version 2.2.0 Release
Merge pull request #177 from bhariharan/master

Mobile SDK Version 2.2.0 Release
Merging back to unstable
Merge pull request #178 from bhariharan/unstable

Merging back to unstable