Add environment support
Merge pull request #26 from swipely/add-environments

Add environment support