Added mocha and chai to development dependencies.
Formatted code.
Changed connect function to use option map. Added initial file for tests.