add middleware to log HTTP 400 errors
To aid in debugging, it is useful to log to the console the requests which cause HTTP 400 responses to be returned and the response body itself.
Add a simple middleware which intercepts HTTP errors and logs the required information.
This PR has a corresponding PR at uisautomation/iar-deploy#32 which updates the logging configuration in the deployment.