added secureOptions back

It appears that secureOptions is an undocumented feature to fix issues with broken server. See joynet/node #5119

- fixes issue introduced in #666