create an env.js configuration file as part of build

The convention is that any environment variables starting with
SWAGGER_UI_ will be converted to variables in an associative
array.
make discoveryURL configurable
coarsely restyle for mapfluence