Add support for AJAX CORS support.

This is a really simple and brute-force way to support AJAX CORS
request.

Refs:
- http://www.w3.org/TR/cors/
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS