Authentication token is stored in the header for future xhr requests

fixes #1 not saving authentication token for future xhr requests
Merge branch github master branch containing new README.