Added support for overriding endpoint - required for EU region
Removed trailing unused import
Merge pull request #1 from eswdd/master

Add support for alternate endpoints