Add response for OPTIONS request

The pre-flight OPTIONS request returns 404 which prevents the browser
(Chrome at least) from even trying the GET/POST.
This change responds to the OPTIONS request letting the browser know it
can perform GET and POST methods CORS requests and some other useful
goodies.