Plugin for CORS header and template update

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