Pass the environment to be used as part of the setupprojectparameters

Pass in the environment to be used when resolving a project via
the SetupProjectParameters.

Store this environment and use it when building. Remove APIs for passing
an environment when building.

Change-Id: Icfd345bac27999b3e4191061a31d9df4f24cbd7f
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>