Update dev/prod environment build flag system.

Back to using process.env.NODE_ENV directly, which is what React does.
Update JS builds.