Set up CORS hander for error responses

See https://github.com/strongloop/loopback/issues/575