Added cors support in rest servlet.