Add endpoint as an argument to credentials/4
Merge pull request #3 from burbas/master

Fix so that the user can decide which endpoint to connect to.