update to run with express 4

Changes to make ntf server work with express 4.  Need to set the process.env.NODE_ENV variable to the correct environment to get production options.