Update retrieve-token helper to use superagent
Respond to setting index with object of key-value pairs

Closes #8