resolve issue#1

added tests.
not refactored enough.

I added 'role' property to the options object in order to create slave.
if (options && options.role && options.role == 'slave') returns slave connection.
otherwise returns master connection.