look for endpoint in link header

discoverEndpoint:

tries to get endpoint from header link, else does usual
Merge pull request #2 from kartikprabhu/master

look for endpoint in link header