Add support for node env for express

Node JS framework express finds it useful to have NODE_ENV variable set. The modifications made allow for this to be done. The default production value is set. It can be overwritten via custom json.