Support CORS

Add CORS support to imp, so ajax requests can be made for the web interface