Added support for CORS.

This fixes #27.