Allow token param name customization

Allows the token param name to be changed from the default ("authentication-token") using an options hashmap.

(Sorry, it looks like some unrelated commits got included in this pull request.)