Configures express app to use compression, logging, json and urlencoding parsing, PUT and DELETE request middleware

Updates the express configuration file to use the afformentioned middlewares.
In addition it sets an environment variable which should be either
'production' or 'development'. The compression middleware is set
to only be used in production and the logging middleware is set
to be used only in development. The parsing and additional request
middleware is set to be used in regardless of the environment
variable.