[Ryan] Added support for OPTIONS requests to api controllers.