Add plugin to set CORS header and switch template to use it instead of PHP. Touches #2