Enable support for CORS requests & minor fixes.