Added Content-Length to all error response headers where not present; moved "req" code before proxy_client code in gateway.js file's "handler" method; fixed proxy_client error response headers logging comment; added error Event and Error throwing for audit service errors for improved logging; added err.stack logging where not present; increased proxy_client timeout value for ecrud core route in config file, added buffer ne strictLength with turned-off (i.e. "false") values to ecrud core route in config file.
Added clusterSize config option code to match VLER-DAS-4.4.1.2 changes; Updated log output; added time-out settings from config and timeout callback event methods for both structured and unstructured audit log requests; added request error listener events for requests for both structured and unstructured audit logging; added response listener events for unstructured auditing response; added try/catch blocks to fs.createWriteStream call area and fs.createReadStream call for tmp file path to re-throw errors for explicit logging in stack-trace output; added response headersSent test to prevent extra 504 response from being sent in proxy_client.on("timeout",...) event callback method.
Added clusterSize code change which got missed earlier; updated process.pid in log output.
Merge pull request #15 from JohnWMay/master

Added Content-Length to all error response headers where not present; mo...