Added optional support for not indenting generated JSON.
Added trace logging for direct JavaScript calls to wrapped connection methods.