Improve CORS support by extracting to single CherryPy tool