Right, that makes sense, thanks.  The more I look at the fog code, the less likely it looks to work with templates anyway - I just can't see any capability for cloning or creating VMs from templates, so I think this'll have to do for now.