Added region support.

I've added region support to enable the library to use other domains, such as the "Asia Pacific (Sydney) Region".