Set up CORS hander for error responses

/to @ritch 

See https://github.com/strongloop/loopback/issues/575
... they are just polluting the code and making it difficult to quickly spot what is the important thing in the test.