support for specifying the key and token via the constructor.

Added constructor options for setting the API key and token.