Set up CORS hander for error responses

/to @ritch 

See https://github.com/strongloop/loopback/issues/575
Same comment as above. Seems that the `name` variable is actually not used at all?