Merge pull request #7 from atlasapi/sr-apikey-btn-fix

Added condition so get api key button calls correct url.
Added condition to check if stage is in url
Updated condition to test for stage.
Reverted to original state of stage env check.
Adjusted condition checking for stage env.
Removed checking of env var
reverted fix
Resolved merge conflict
Replaced fix for stage env.
Merge branch 'sr-apikey-btn-fix' into stage