Added support for OPTIONS preflight (compatibility with jquery ajax method)

Added support for OPTIONS method, which executes every time before a CORS POST request. This makes this library work out of the box with all browsers.