Plugin for CORS header template update

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