Add support for staging environment
Merge pull request #8 from alexbel/respect_staging_env

Add support for staging environment