Changed arguments to be object based, added auth and support for auth callbacks
Merge pull request #1 from drdk/feature-auth

Ability to use auth