Add CORS support

These commits add CORS support to cgimap.