updated so auth is only included in call if a token is present, also cleaned up tests
reverted nodejs merge
Merge pull request #6 from rodsimpson/master

updated so auth is only included in call if a token is present, also cle...