Now stores the CAM template XML properly in the private directory of the app.