Merge pull request #2 from srenault/master

Fix fetch api with token
Merge pull request #3 from srenault/master

Support ref & handle Authorisation errors.
publish 1.0-M3
Fix test about the new introduced ref id