Add support for build-time environment variables to 'build' API

A build-time environment variable gets used only while processing
the 'RUN' primitive of a DockerFile. Such a variable is only be
accessible during 'RUN' and is persisted with the intermediate
and/or final docker images themselves, thereby addressing the
portability concerns of the images generated with 'build'.