Fixes #122. Implements CORS as a decorator that can be used both for classes and methods. Also it implements properly the model of preflight OPTIONS requests performed by the browser for methods not simple like PUT or DELETE