Adding support for environments

- Added an extra parameter, -e, for build and upload

- Added support for environments when building projects