Fixed some bugs in modules and client's index.js

- index.js now properly defaults options.
- pinger.js now has options attached to it.